/linux/drivers/net/usb/ |
A D | cdc_eem.c | 79 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN; in eem_bind() 103 if (!((len + EEM_HEAD + ETH_FCS_LEN) % dev->maxpacket)) in eem_tx_fixup() 110 if ((tailroom >= ETH_FCS_LEN + padlen) && in eem_tx_fixup() 115 > (EEM_HEAD + ETH_FCS_LEN + padlen)) { in eem_tx_fixup() 125 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup() 276 if (len < (ETH_HLEN + ETH_FCS_LEN)) in eem_rx_fixup() 303 + len - ETH_FCS_LEN); in eem_rx_fixup() 305 - ETH_FCS_LEN); in eem_rx_fixup() 308 + len - ETH_FCS_LEN); in eem_rx_fixup() 311 skb_trim(skb2, len - ETH_FCS_LEN); in eem_rx_fixup()
|
/linux/drivers/usb/gadget/function/ |
A D | f_eem.c | 358 if (((len + EEM_HLEN + ETH_FCS_LEN) % in->maxpacket) == 0) in eem_wrap() 361 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap() 365 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap() 509 || (len < (ETH_HLEN + ETH_FCS_LEN))) { in eem_unwrap() 517 - ETH_FCS_LEN); in eem_unwrap() 519 skb->data, len - ETH_FCS_LEN); in eem_unwrap() 522 - ETH_FCS_LEN); in eem_unwrap() 535 skb_trim(skb2, len - ETH_FCS_LEN); in eem_unwrap()
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-switch.h | 41 #define ETHSW_MAX_FRAME_LENGTH (DPAA2_MFL - VLAN_ETH_HLEN - ETH_FCS_LEN) 42 #define ETHSW_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN + ETH_FCS_LEN)
|
/linux/drivers/net/ethernet/xilinx/ |
A D | xilinx_emaclite.c | 434 length += ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 437 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 442 length = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_recv_data() 445 length = proto_type + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 605 len = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_rx_handler()
|
/linux/drivers/net/fjes/ |
A D | fjes_hw.h | 65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN) 70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
|
/linux/include/uapi/linux/ |
A D | if_ether.h | 38 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
|
/linux/drivers/vdpa/mlx5/core/ |
A D | mlx5_vdpa.h | 12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | core.h | 31 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_flower.c | 87 ETH_FCS_LEN; in sja1105_setup_bcast_policer() 159 ETH_FCS_LEN; in sja1105_setup_tc_policer()
|
/linux/drivers/net/ethernet/actions/ |
A D | owl-emac.h | 21 #define OWL_EMAC_RX_FRAME_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
|
/linux/drivers/net/ethernet/intel/igbvf/ |
A D | netdev.c | 1628 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN; in igbvf_sw_init() 1630 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_sw_init() 1631 adapter->min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in igbvf_sw_init() 2398 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu() 2427 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu() 2428 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu() 2430 ETH_FCS_LEN; in igbvf_change_mtu()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | vnic_main.c | 132 stats->netstats.tx_bytes += skb->len + ETH_FCS_LEN; in hfi1_vnic_update_tx_counters() 161 stats->netstats.rx_bytes += skb->len + ETH_FCS_LEN; in hfi1_vnic_update_rx_counters()
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A D | emac.c | 678 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe() 680 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
A D | atl1e_main.c | 425 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu() 603 VLAN_HLEN + ETH_FCS_LEN + 7) >> 3; in atl1e_sw_init() 728 + ETH_FCS_LEN; in atl1e_init_ring_resources() 936 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1120 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure() 2269 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in atl1e_init_netdev()
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
A D | hns_dsaf_mac.c | 487 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in hns_mac_set_mtu() 496 if (new_frm < (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)) in hns_mac_set_mtu() 497 new_frm = (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN); in hns_mac_set_mtu()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_dcb_nl.c | 205 priv->rx_skb_size + ETH_FCS_LEN, in mlx4_en_dcbnl_set_all() 432 priv->rx_skb_size + ETH_FCS_LEN, in mlx4_en_dcbnl_ieee_setpfc()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_txrx.h | 138 #define ICE_ETH_PKT_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
|
/linux/drivers/net/ethernet/brocade/bna/ |
A D | bnad.h | 100 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
|
/linux/drivers/net/ethernet/amazon/ena/ |
A D | ena_netdev.h | 115 #define ENA_XDP_MAX_MTU (ENA_PAGE_SIZE - ETH_HLEN - ETH_FCS_LEN - \
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_packet.c | 145 skb_put(skb, byte_cnt - ETH_FCS_LEN); in sparx5_xtr_grp()
|
/linux/drivers/staging/octeon/ |
A D | ethernet.c | 247 int mtu_overhead = ETH_HLEN + ETH_FCS_LEN + vlan_bytes; in cvm_oct_common_change_mtu() 680 int mtu_overhead = ETH_HLEN + ETH_FCS_LEN; in cvm_oct_probe()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_txrx.h | 112 #define I40E_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_txrx.h | 99 #define IAVF_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
|
/linux/drivers/net/ethernet/atheros/alx/ |
A D | hw.h | 348 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
|
/linux/drivers/net/ethernet/broadcom/ |
A D | bcm4908_enet.c | 37 ETH_FCS_LEN + 4) /* 32 */ 610 skb_put(slot.skb, len - ETH_FCS_LEN); in bcm4908_enet_poll_rx()
|