/linux-6.1.9/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.1.9/drivers/usb/gadget/function/ |
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-6.1.9/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.1.9/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.1.9/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.1.9/include/uapi/linux/ |
D | if_ether.h | 38 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_fdma.c | 371 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.1.9/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_config.h | 48 #define OCTEP_MAX_MTU (10000 - (ETH_HLEN + ETH_FCS_LEN))
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | core.h | 31 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
|
/linux-6.1.9/drivers/vdpa/mlx5/core/ |
D | mlx5_vdpa.h | 12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
|
/linux-6.1.9/drivers/net/ethernet/actions/ |
D | owl-emac.h | 21 #define OWL_EMAC_RX_FRAME_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/intel/igbvf/ |
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-6.1.9/drivers/net/ethernet/qualcomm/emac/ |
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-6.1.9/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.1.9/drivers/net/ethernet/hisilicon/hns/ |
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-6.1.9/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() 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-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
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-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.c | 621 buf_len = len - ETH_FCS_LEN; in lan966x_xtr_irq_handler() 644 len -= ETH_FCS_LEN - sz; in lan966x_xtr_irq_handler() 647 buf = (u32 *)skb_put(skb, ETH_FCS_LEN); in lan966x_xtr_irq_handler()
|
/linux-6.1.9/drivers/net/dsa/microchip/ |
D | ksz9477.c | 51 frame_size = mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; in ksz9477_change_mtu() 65 return KSZ9477_MAX_FRAME_SIZE - VLAN_ETH_HLEN - ETH_FCS_LEN; in ksz9477_max_mtu() 1157 VLAN_ETH_FRAME_LEN + ETH_FCS_LEN); in ksz9477_setup()
|
/linux-6.1.9/drivers/net/ethernet/amazon/ena/ |
D | ena_netdev.h | 116 #define ENA_XDP_MAX_MTU (ENA_PAGE_SIZE - ETH_HLEN - ETH_FCS_LEN - \
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.h | 141 #define ICE_ETH_PKT_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
|
/linux-6.1.9/drivers/net/ethernet/brocade/bna/ |
D | bnad.h | 100 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
|
/linux-6.1.9/drivers/net/ethernet/atheros/alx/ |
D | hw.h | 348 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.h | 112 #define I40E_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
|