/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)
|
D | dpaa2-eth.h | 39 #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/ |
D | sch_frag.c | 17 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/ |
D | qca_uart.c | 73 VLAN_ETH_HLEN); in qca_tty_receive() 113 VLAN_ETH_HLEN); in qca_tty_receive() 276 VLAN_ETH_HLEN); in qcauart_netdev_init()
|
D | qca_7k_common.h | 52 #define QCAFRM_MAX_LEN (QCAFRM_MAX_MTU + VLAN_ETH_HLEN)
|
D | qca_spi.c | 351 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/ |
D | gdm_lte.c | 121 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/ |
D | nft_payload.c | 52 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/ |
D | otx2_txrx.h | 23 #define OTX2_ETH_HLEN (VLAN_ETH_HLEN + VLAN_HLEN)
|
/linux-6.6.21/include/linux/ |
D | if_vlan.h | 19 #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/ |
D | tc_tun.c | 249 (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/ |
D | cdc_mbim.c | 245 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/ |
D | xilinx_axienet.h | 25 #define XAE_MAX_VLAN_FRAME_SIZE (XAE_MTU + VLAN_ETH_HLEN + XAE_TRL_SIZE)
|
D | xilinx_axienet_main.c | 602 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/ |
D | fjes_main.c | 599 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/ |
D | lan937x_main.c | 232 new_mtu += VLAN_ETH_HLEN + ETH_FCS_LEN; in lan937x_change_mtu()
|
/linux-6.6.21/drivers/net/xen-netback/ |
D | interface.c | 354 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/ |
D | main.c | 632 if (!pskb_may_pull(skb, header_len + VLAN_ETH_HLEN)) in batadv_get_vid()
|
D | soft-interface.c | 442 if (!pskb_may_pull(skb, VLAN_ETH_HLEN)) in batadv_interface_rx()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | vnic_main.c | 296 int max_len = vinfo->netdev->mtu + VLAN_ETH_HLEN; in hfi1_vnic_decap_skb()
|
/linux-6.6.21/drivers/net/ethernet/cavium/thunder/ |
D | nic_main.c | 265 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/ |
D | lantiq_xrx200.c | 115 return VLAN_ETH_HLEN + mtu; in xrx200_max_frame_len()
|
/linux-6.6.21/drivers/net/dsa/realtek/ |
D | rtl8365mb.c | 1153 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/ |
D | lantiq_gswip.c | 1464 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/ |
D | dpaa_eth.c | 199 (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()
|