/linux/drivers/net/ethernet/ibm/emac/ |
H A D | core.h | 59 if (mtu > ETH_DATA_LEN) in emac_rx_size() 62 return mal_rx_size(ETH_DATA_LEN + EMAC_MTU_OVERHEAD); in emac_rx_size()
|
H A D | core.c | 620 if (dev->ndev->mtu > ETH_DATA_LEN) { in emac_configure() 1079 mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) || in emac_resize_rx_ring() 1080 (dev->ndev->mtu > ETH_DATA_LEN); in emac_resize_rx_ring() 1082 mr1_jumbo_bit_change = (new_mtu > ETH_DATA_LEN) ^ in emac_resize_rx_ring() 1083 (dev->ndev->mtu > ETH_DATA_LEN); in emac_resize_rx_ring() 2819 dev->max_mtu = ETH_DATA_LEN; in emac_init_config()
|
/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_7k_common.h | 35 #define QCAFRM_MAX_MTU ETH_DATA_LEN
|
/linux/include/uapi/linux/ |
H A D | if_ether.h | 36 #define ETH_DATA_LEN 1500 /* Max. octets in payload */ macro
|
/linux/net/ethernet/ |
H A D | eth.c | 351 dev->mtu = ETH_DATA_LEN; in ether_setup() 353 dev->max_mtu = ETH_DATA_LEN; in ether_setup()
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_xdp.c | 112 if (prog && dev->mtu > ETH_DATA_LEN) { in stmmac_xdp_set_prog()
|
/linux/net/batman-adv/ |
H A D | main.h | 95 #define BATADV_TP_PACKET_LEN ETH_DATA_LEN
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_xdp.c | 19 if (dev->mtu > ETH_DATA_LEN) { in igc_xdp_set_prog()
|
/linux/tools/testing/selftests/net/ |
H A D | tap.c | 316 vh->gso_size = ETH_DATA_LEN - sizeof(struct iphdr); in build_test_packet_valid_udp_gso() 351 vh->gso_size = ETH_DATA_LEN - sizeof(struct iphdr); in build_test_packet_crash_tap_invalid_eth_proto()
|
H A D | udpgso_bench_tx.c | 328 const int max_nr_msg = ETH_MAX_MTU / ETH_DATA_LEN; in send_udp_sendmmsg() 540 cfg_mss = ETH_DATA_LEN - hdrlen; in parse_opts()
|
/linux/net/dsa/ |
H A D | conduit.c | 368 err = dev_set_mtu(dev, ETH_DATA_LEN); in dsa_conduit_reset_mtu() 381 mtu = ETH_DATA_LEN + dsa_tag_protocol_overhead(tag_ops); in dsa_conduit_setup()
|
/linux/drivers/net/xen-netback/ |
H A D | interface.c | 357 int max = vif->can_sg ? ETH_MAX_MTU - VLAN_ETH_HLEN : ETH_DATA_LEN; in xenvif_change_mtu() 608 if (!vif->can_sg && vif->dev->mtu > ETH_DATA_LEN) in xenvif_carrier_on() 609 dev_set_mtu(vif->dev, ETH_DATA_LEN); in xenvif_carrier_on()
|
/linux/drivers/net/ethernet/actions/ |
H A D | owl-emac.h | 20 #define OWL_EMAC_MTU_MAX ETH_DATA_LEN
|
/linux/drivers/net/ovpn/ |
H A D | main.c | 153 dev->mtu = ETH_DATA_LEN - OVPN_HEAD_ROOM; in ovpn_setup()
|
/linux/net/l2tp/ |
H A D | l2tp_eth.c | 218 dev->mtu = ETH_DATA_LEN - overhead; in l2tp_eth_adjust_mtu()
|
/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_wwan.c | 153 iosm_dev->mtu = ETH_DATA_LEN; in ipc_wwan_setup()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_classification.c | 87 static char buf[ETH_DATA_LEN]; 211 memset(buf, 0, ETH_DATA_LEN); in build_packet()
|
/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 417 if (proto_type > ETH_DATA_LEN) { in xemaclite_recv_data() 424 length = min_t(u16, length, ETH_DATA_LEN); in xemaclite_recv_data()
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_netdev.c | 198 adapter->info.vesw.eth_mtu = ETH_DATA_LEN; in opa_vnic_set_pod_values()
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | bcm4908_enet.c | 34 #define ENET_MTU_MAX ETH_DATA_LEN /* Is it possible to support 2044? */ 752 netdev->mtu = ETH_DATA_LEN; in bcm4908_enet_probe()
|
/linux/drivers/net/dsa/realtek/ |
H A D | rtl8366rb.c | 937 rb->max_mtu[i] = ETH_DATA_LEN + RTL8366RB_CPU_TAG_SIZE; in rtl8366rb_setup() 939 rb->max_mtu[i] = ETH_DATA_LEN; in rtl8366rb_setup() 1392 max_mtu = ETH_DATA_LEN; in rtl8366rb_change_mtu() 1400 * For ETH_DATA_LEN (1500 bytes) this will add up to 1522 bytes. in rtl8366rb_change_mtu()
|
/linux/drivers/net/ethernet/hisilicon/hibmcge/ |
H A D | hbg_hw.c | 162 max_frame_len = max_t(u32, max_frame_len, ETH_DATA_LEN); in hbg_hw_set_pcu_max_frame_len()
|
/linux/drivers/net/ethernet/intel/ |
H A D | e100.c | 2020 if (actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN + fcs_pad) in e100_rx_indicate() 2029 } else if (actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN + fcs_pad) { in e100_rx_indicate() 2371 if (!(skb = netdev_alloc_skb(nic->netdev, ETH_DATA_LEN))) { in e100_loopback_test() 2375 skb_put(skb, ETH_DATA_LEN); in e100_loopback_test() 2376 memset(skb->data, 0xFF, ETH_DATA_LEN); in e100_loopback_test() 2385 skb->data, ETH_DATA_LEN)) in e100_loopback_test()
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_mac.h | 24 #define MAC_DEFAULT_MTU (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN + ETH_DATA_LEN)
|
/linux/drivers/net/ethernet/faraday/ |
H A D | ftmac100.c | 216 if (netdev->mtu > ETH_DATA_LEN) in ftmac100_start_hw() 1084 if (mtu > ETH_DATA_LEN) { in ftmac100_change_mtu()
|