/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)
|
D | dpaa2-eth.h | 38 #define DPAA2_ETH_MAX_MTU (DPAA2_ETH_MFL - VLAN_ETH_HLEN) 40 #define DPAA2_ETH_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN)
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/qualcomm/ |
D | qca_uart.c | 74 VLAN_ETH_HLEN); in qca_tty_receive() 114 VLAN_ETH_HLEN); in qca_tty_receive() 277 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 | 352 VLAN_ETH_HLEN); in qcaspi_receive() 440 net_dev->mtu + VLAN_ETH_HLEN); in qcaspi_receive() 818 qca->buffer_size = (dev->mtu + VLAN_ETH_HLEN + QCAFRM_HEADER_LEN + in qcaspi_netdev_init() 828 VLAN_ETH_HLEN); in qcaspi_netdev_init()
|
/linux-6.1.9/net/netfilter/ |
D | nft_payload.c | 51 offset >= VLAN_ETH_HLEN && offset < VLAN_ETH_HLEN + VLAN_HLEN) in nft_payload_copy_vlan() 55 if (offset < VLAN_ETH_HLEN + vlan_hlen) { in nft_payload_copy_vlan() 59 skb_copy_bits(skb, mac_off, &veth, VLAN_ETH_HLEN) < 0) in nft_payload_copy_vlan() 64 if (offset + len > VLAN_ETH_HLEN + vlan_hlen) in nft_payload_copy_vlan() 65 ethlen -= offset + len - VLAN_ETH_HLEN - vlan_hlen; in nft_payload_copy_vlan()
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_txrx.h | 23 #define OTX2_ETH_HLEN (VLAN_ETH_HLEN + VLAN_HLEN)
|
/linux-6.1.9/include/linux/ |
D | if_vlan.h | 19 #define VLAN_ETH_HLEN 18 /* Total octets in header. */ macro 715 if (unlikely(!pskb_may_pull(skb, VLAN_ETH_HLEN))) in skb_vlan_tagged_multi()
|
/linux-6.1.9/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.1.9/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.1.9/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 | 601 lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN + in axienet_device_reset() 1260 if ((new_mtu + VLAN_ETH_HLEN + in axienet_change_mtu()
|
/linux-6.1.9/drivers/net/fjes/ |
D | fjes_main.c | 601 char shortpkt[VLAN_ETH_HLEN]; in fjes_xmit_frame() 695 if (len < VLAN_ETH_HLEN) { in fjes_xmit_frame() 696 memset(shortpkt, 0, VLAN_ETH_HLEN); in fjes_xmit_frame() 698 len = VLAN_ETH_HLEN; in fjes_xmit_frame()
|
/linux-6.1.9/drivers/net/dsa/microchip/ |
D | lan937x_main.c | 228 new_mtu += VLAN_ETH_HLEN + ETH_FCS_LEN; in lan937x_change_mtu()
|
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()
|
/linux-6.1.9/drivers/net/xen-netback/ |
D | interface.c | 356 int max = vif->can_sg ? ETH_MAX_MTU - VLAN_ETH_HLEN : ETH_DATA_LEN; in xenvif_change_mtu() 536 dev->max_mtu = ETH_MAX_MTU - VLAN_ETH_HLEN; in xenvif_alloc()
|
/linux-6.1.9/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 | 441 if (!pskb_may_pull(skb, VLAN_ETH_HLEN)) in batadv_interface_rx()
|
/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/ |
D | lantiq_xrx200.c | 115 return VLAN_ETH_HLEN + mtu; in xrx200_max_frame_len()
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.c | 198 (dpaa_max_frm - (VLAN_ETH_HLEN + ETH_FCS_LEN)) 3020 if (mtu + VLAN_ETH_HLEN + ETH_FCS_LEN > max_contig_data) { in xdp_validate_mtu() 3023 max_contig_data - VLAN_ETH_HLEN - ETH_FCS_LEN); in xdp_validate_mtu()
|