Home
last modified time | relevance | path

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

123456

/linux/drivers/net/usb/
A 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/drivers/usb/gadget/function/
A 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/drivers/net/ethernet/freescale/dpaa2/
A 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/drivers/net/ethernet/xilinx/
A Dxilinx_emaclite.c434 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 Dfjes_hw.h65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN)
70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
/linux/include/uapi/linux/
A Dif_ether.h38 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
/linux/drivers/vdpa/mlx5/core/
A Dmlx5_vdpa.h12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dcore.h31 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
/linux/drivers/net/dsa/sja1105/
A Dsja1105_flower.c87 ETH_FCS_LEN; in sja1105_setup_bcast_policer()
159 ETH_FCS_LEN; in sja1105_setup_tc_policer()
/linux/drivers/net/ethernet/actions/
A Dowl-emac.h21 #define OWL_EMAC_RX_FRAME_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
/linux/drivers/net/ethernet/intel/igbvf/
A 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/drivers/infiniband/hw/hfi1/
A 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/drivers/net/ethernet/qualcomm/emac/
A Demac.c678 (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 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/drivers/net/ethernet/hisilicon/hns/
A 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/drivers/net/ethernet/mellanox/mlx4/
A 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/drivers/net/ethernet/intel/ice/
A Dice_txrx.h138 #define ICE_ETH_PKT_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
/linux/drivers/net/ethernet/brocade/bna/
A Dbnad.h100 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
/linux/drivers/net/ethernet/amazon/ena/
A Dena_netdev.h115 #define ENA_XDP_MAX_MTU (ENA_PAGE_SIZE - ETH_HLEN - ETH_FCS_LEN - \
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_packet.c145 skb_put(skb, byte_cnt - ETH_FCS_LEN); in sparx5_xtr_grp()
/linux/drivers/staging/octeon/
A Dethernet.c247 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 Di40e_txrx.h112 #define I40E_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
/linux/drivers/net/ethernet/intel/iavf/
A Diavf_txrx.h99 #define IAVF_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
/linux/drivers/net/ethernet/atheros/alx/
A Dhw.h348 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
/linux/drivers/net/ethernet/broadcom/
A Dbcm4908_enet.c37 ETH_FCS_LEN + 4) /* 32 */
610 skb_put(slot.skb, len - ETH_FCS_LEN); in bcm4908_enet_poll_rx()

Completed in 74 milliseconds

123456