/linux-6.6.21/drivers/net/usb/ |
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-6.6.21/drivers/usb/gadget/function/ |
D | f_eem.c | 356 if (((len + EEM_HLEN + ETH_FCS_LEN) % in->maxpacket) == 0) in eem_wrap() 359 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap() 363 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap() 507 || (len < (ETH_HLEN + ETH_FCS_LEN))) { in eem_unwrap() 515 - ETH_FCS_LEN); in eem_unwrap() 517 skb->data, len - ETH_FCS_LEN); in eem_unwrap() 520 - ETH_FCS_LEN); in eem_unwrap() 533 skb_trim(skb2, len - ETH_FCS_LEN); in eem_unwrap()
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
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-6.6.21/drivers/net/ethernet/ti/icssg/ |
D | icssg_prueth.h | 41 #define PRUETH_MAX_MTU (2000 - ETH_HLEN - ETH_FCS_LEN) 43 #define PRUETH_MAX_PKT_SIZE (PRUETH_MAX_MTU + ETH_HLEN + ETH_FCS_LEN)
|
D | icssg_mii_rt.h | 76 #define PRUSS_MII_RT_RX_FRMS_MAX (VLAN_ETH_FRAME_LEN + ETH_FCS_LEN)
|
D | icssg_mii_cfg.c | 30 mtu += (ETH_HLEN + ETH_FCS_LEN); in icssg_mii_update_mtu()
|
/linux-6.6.21/drivers/net/vmxnet3/ |
D | vmxnet3_xdp.h | 24 2 * VLAN_HLEN - ETH_FCS_LEN)
|
/linux-6.6.21/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 424 length += ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 427 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 432 length = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_recv_data() 436 length = proto_type + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 596 len = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_rx_handler()
|
/linux-6.6.21/drivers/net/fjes/ |
D | fjes_hw.h | 65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN) 70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
|
/linux-6.6.21/include/uapi/linux/ |
D | if_ether.h | 38 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
|
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_dev.h | 26 #define HINIC_MAX_MTU_SIZE (HINIC_MAX_JUMBO_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN)
|
/linux-6.6.21/drivers/net/ethernet/mscc/ |
D | ocelot_fdma.c | 370 if (pskb_trim(skb, skb->len - ETH_FCS_LEN)) in ocelot_fdma_receive_skb() 644 int needed_tailroom = max_t(int, ETH_FCS_LEN - skb_tailroom(skb), 0); in ocelot_fdma_prepare_skb() 667 skb_put(skb, ETH_FCS_LEN); in ocelot_fdma_prepare_skb() 795 dev->needed_tailroom = ETH_FCS_LEN; in ocelot_fdma_netdev_init()
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_config.h | 48 #define OCTEP_MAX_MTU (10000 - (ETH_HLEN + ETH_FCS_LEN))
|
/linux-6.6.21/drivers/vdpa/mlx5/core/ |
D | mlx5_vdpa.h | 12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
|
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | core.h | 37 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
|
/linux-6.6.21/drivers/net/ethernet/actions/ |
D | owl-emac.h | 21 #define OWL_EMAC_RX_FRAME_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
|
/linux-6.6.21/include/linux/ |
D | ethtool.h | 1013 return (ETH_ZLEN + ETH_FCS_LEN) * (1 + val_add) - ETH_FCS_LEN; in ethtool_mm_frag_size_add_to_min()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/ |
D | bcm4908_enet.c | 37 ETH_FCS_LEN + 4) /* 32 */ 41 ENET_MTU_MAX + ETH_FCS_LEN + 4) 629 skb_put(skb, len - ETH_FCS_LEN); in bcm4908_enet_poll_rx()
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 87 ETH_FCS_LEN; in sja1105_setup_bcast_policer() 159 ETH_FCS_LEN; in sja1105_setup_tc_policer()
|
/linux-6.6.21/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 1632 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN; in igbvf_sw_init() 1634 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_sw_init() 1635 adapter->min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in igbvf_sw_init() 2402 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu() 2431 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu() 2432 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu() 2434 ETH_FCS_LEN; in igbvf_change_mtu()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
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-6.6.21/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 677 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe() 679 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/ |
D | bcmasp_intf.c | 301 if (!nr_frags && size < (ETH_ZLEN + ETH_FCS_LEN)) { in bcmasp_xmit() 302 if (skb_put_padto(skb, ETH_ZLEN + ETH_FCS_LEN)) in bcmasp_xmit() 564 skb_trim(skb, len - ETH_FCS_LEN); in bcmasp_rx_poll() 565 len -= ETH_FCS_LEN; in bcmasp_rx_poll()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_mac.c | 516 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in hns_mac_set_mtu() 525 if (new_frm < (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)) in hns_mac_set_mtu() 526 new_frm = (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN); in hns_mac_set_mtu()
|
/linux-6.6.21/drivers/net/ethernet/atheros/atl1e/ |
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() 939 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1123 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure() 2275 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in atl1e_init_netdev()
|