Home
last modified time | relevance | path

Searched refs:ETH_FCS_LEN (Results 1 – 25 of 152) sorted by relevance

1234567

/linux-6.1.9/drivers/net/usb/
Dcdc_eem.c79 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/
Df_eem.c358 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/
Ddpaa2-switch.h41 #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/
Dxilinx_emaclite.c424 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/
Dfjes_hw.h65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN)
70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
/linux-6.1.9/include/uapi/linux/
Dif_ether.h38 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_fdma.c371 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/
Doctep_config.h48 #define OCTEP_MAX_MTU (10000 - (ETH_HLEN + ETH_FCS_LEN))
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcore.h31 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
/linux-6.1.9/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
/linux-6.1.9/drivers/net/ethernet/actions/
Dowl-emac.h21 #define OWL_EMAC_RX_FRAME_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
/linux-6.1.9/drivers/net/dsa/sja1105/
Dsja1105_flower.c87 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/
Dnetdev.c1628 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/
Demac.c678 (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/
Dvnic_main.c132 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/
Dhns_dsaf_mac.c487 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/
Datl1e_main.c425 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/
Den_dcb_nl.c205 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/
Dlan966x_main.c621 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/
Dksz9477.c51 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/
Dena_netdev.h116 #define ENA_XDP_MAX_MTU (ENA_PAGE_SIZE - ETH_HLEN - ETH_FCS_LEN - \
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_txrx.h141 #define ICE_ETH_PKT_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
/linux-6.1.9/drivers/net/ethernet/brocade/bna/
Dbnad.h100 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
/linux-6.1.9/drivers/net/ethernet/atheros/alx/
Dhw.h348 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h112 #define I40E_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))

1234567