Home
last modified time | relevance | path

Searched refs:VLAN_ETH_HLEN (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.6.21/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)
Ddpaa2-eth.h39 #define DPAA2_ETH_MAX_MTU (DPAA2_ETH_MFL - VLAN_ETH_HLEN)
41 #define DPAA2_ETH_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN)
/linux-6.6.21/net/sched/
Dsch_frag.c17 u8 l2_data[VLAN_ETH_HLEN];
89 if (skb_network_offset(skb) > VLAN_ETH_HLEN) { in sch_fragment()
/linux-6.6.21/drivers/net/ethernet/qualcomm/
Dqca_uart.c73 VLAN_ETH_HLEN); in qca_tty_receive()
113 VLAN_ETH_HLEN); in qca_tty_receive()
276 VLAN_ETH_HLEN); in qcauart_netdev_init()
Dqca_7k_common.h52 #define QCAFRM_MAX_LEN (QCAFRM_MAX_MTU + VLAN_ETH_HLEN)
Dqca_spi.c351 VLAN_ETH_HLEN); in qcaspi_receive()
439 net_dev->mtu + VLAN_ETH_HLEN); in qcaspi_receive()
834 qca->buffer_size = (dev->mtu + VLAN_ETH_HLEN + QCAFRM_HEADER_LEN + in qcaspi_netdev_init()
844 VLAN_ETH_HLEN); in qcaspi_netdev_init()
/linux-6.6.21/drivers/staging/gdm724x/
Dgdm_lte.c121 mac_header_len = VLAN_ETH_HLEN; in gdm_lte_emulate_arp()
243 mac_header_len = VLAN_ETH_HLEN; in gdm_lte_emulate_ndp()
354 network_data = skb->data + VLAN_ETH_HLEN; in gdm_lte_tx_nic_type()
441 data_buf = skb->data + (VLAN_ETH_HLEN - ETH_HLEN); in gdm_lte_tx()
442 data_len = skb->len - (VLAN_ETH_HLEN - ETH_HLEN); in gdm_lte_tx()
625 mac_header_len = VLAN_ETH_HLEN; in gdm_lte_netif_rx()
/linux-6.6.21/net/netfilter/
Dnft_payload.c52 offset >= VLAN_ETH_HLEN && offset < VLAN_ETH_HLEN + VLAN_HLEN) in nft_payload_copy_vlan()
56 if (offset < VLAN_ETH_HLEN + vlan_hlen) { in nft_payload_copy_vlan()
60 skb_copy_bits(skb, mac_off, &veth, VLAN_ETH_HLEN) < 0) in nft_payload_copy_vlan()
65 if (offset + len > VLAN_ETH_HLEN + vlan_hlen) in nft_payload_copy_vlan()
66 ethlen -= offset + len - VLAN_ETH_HLEN - vlan_hlen; in nft_payload_copy_vlan()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.h23 #define OTX2_ETH_HLEN (VLAN_ETH_HLEN + VLAN_HLEN)
/linux-6.6.21/include/linux/
Dif_vlan.h19 #define VLAN_ETH_HLEN 18 /* Total octets in header. */ macro
759 if (unlikely(!pskb_may_pull(skb, VLAN_ETH_HLEN))) in skb_vlan_tagged_multi()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c249 (is_vlan_dev(attr.route_dev) ? VLAN_ETH_HLEN : ETH_HLEN) + in mlx5e_tc_tun_create_header_ipv4()
364 (is_vlan_dev(attr.route_dev) ? VLAN_ETH_HLEN : ETH_HLEN) + in mlx5e_tc_tun_update_header_ipv4()
518 (is_vlan_dev(attr.route_dev) ? VLAN_ETH_HLEN : ETH_HLEN) + in mlx5e_tc_tun_create_header_ipv6()
632 (is_vlan_dev(attr.route_dev) ? VLAN_ETH_HLEN : ETH_HLEN) + in mlx5e_tc_tun_update_header_ipv6()
/linux-6.6.21/drivers/net/usb/
Dcdc_mbim.c245 if (vlan_get_tag(skb, &tci) < 0 && skb->len > VLAN_ETH_HLEN && in cdc_mbim_tx_fixup()
248 skb_pull(skb, VLAN_ETH_HLEN); in cdc_mbim_tx_fixup()
/linux-6.6.21/drivers/net/ethernet/xilinx/
Dxilinx_axienet.h25 #define XAE_MAX_VLAN_FRAME_SIZE (XAE_MTU + VLAN_ETH_HLEN + XAE_TRL_SIZE)
Dxilinx_axienet_main.c602 lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN + in axienet_device_reset()
1261 if ((new_mtu + VLAN_ETH_HLEN + in axienet_change_mtu()
/linux-6.6.21/drivers/net/fjes/
Dfjes_main.c599 char shortpkt[VLAN_ETH_HLEN]; in fjes_xmit_frame()
693 if (len < VLAN_ETH_HLEN) { in fjes_xmit_frame()
694 memset(shortpkt, 0, VLAN_ETH_HLEN); in fjes_xmit_frame()
696 len = VLAN_ETH_HLEN; in fjes_xmit_frame()
/linux-6.6.21/drivers/net/dsa/microchip/
Dlan937x_main.c232 new_mtu += VLAN_ETH_HLEN + ETH_FCS_LEN; in lan937x_change_mtu()
/linux-6.6.21/drivers/net/xen-netback/
Dinterface.c354 int max = vif->can_sg ? ETH_MAX_MTU - VLAN_ETH_HLEN : ETH_DATA_LEN; in xenvif_change_mtu()
532 dev->max_mtu = ETH_MAX_MTU - VLAN_ETH_HLEN; in xenvif_alloc()
/linux-6.6.21/net/batman-adv/
Dmain.c632 if (!pskb_may_pull(skb, header_len + VLAN_ETH_HLEN)) in batadv_get_vid()
Dsoft-interface.c442 if (!pskb_may_pull(skb, VLAN_ETH_HLEN)) in batadv_interface_rx()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dvnic_main.c296 int max_len = vinfo->netdev->mtu + VLAN_ETH_HLEN; in hfi1_vnic_decap_skb()
/linux-6.6.21/drivers/net/ethernet/cavium/thunder/
Dnic_main.c265 new_frs += VLAN_ETH_HLEN + ETH_FCS_LEN + 4; in nic_update_hw_frs()
447 nic->pkind.maxlen = NIC_HW_MAX_FRS + VLAN_ETH_HLEN + ETH_FCS_LEN + 4; in nic_init_hw()
/linux-6.6.21/drivers/net/ethernet/
Dlantiq_xrx200.c115 return VLAN_ETH_HLEN + mtu; in xrx200_max_frame_len()
/linux-6.6.21/drivers/net/dsa/realtek/
Drtl8365mb.c1153 frame_size = new_mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; in rtl8365mb_port_change_mtu()
1166 return RTL8365MB_CFG0_MAX_LEN_MAX - VLAN_ETH_HLEN - ETH_FCS_LEN; in rtl8365mb_port_max_mtu()
/linux-6.6.21/drivers/net/dsa/
Dlantiq_gswip.c1464 return GSWIP_MAX_PACKET_LENGTH - VLAN_ETH_HLEN - ETH_FCS_LEN; in gswip_port_max_mtu()
1477 gswip_switch_w(priv, VLAN_ETH_HLEN + new_mtu + ETH_FCS_LEN, in gswip_port_change_mtu()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c199 (dpaa_max_frm - (VLAN_ETH_HLEN + ETH_FCS_LEN))
2981 if (mtu + VLAN_ETH_HLEN + ETH_FCS_LEN > max_contig_data) { in xdp_validate_mtu()
2984 max_contig_data - VLAN_ETH_HLEN - ETH_FCS_LEN); in xdp_validate_mtu()

123