/linux-6.6.21/include/linux/ |
D | if_vlan.h | 16 #define VLAN_HLEN 4 /* The additional bytes required by VLAN macro 354 if (skb_cow_head(skb, VLAN_HLEN) < 0) in __vlan_insert_inner_tag() 357 skb_push(skb, VLAN_HLEN); in __vlan_insert_inner_tag() 361 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag() 363 skb->mac_header -= VLAN_HLEN; in __vlan_insert_inner_tag() 604 if (WARN_ON(vlan_depth < VLAN_HLEN)) in __vlan_get_protocol() 606 vlan_depth -= VLAN_HLEN; in __vlan_get_protocol() 618 vlan_depth += VLAN_HLEN; in __vlan_get_protocol() 721 memmove(skb->data + VLAN_HLEN, skb->data, 2 * ETH_ALEN); in vlan_remove_tag() 723 return __skb_pull(skb, VLAN_HLEN); in vlan_remove_tag()
|
D | skb_array.h | 152 len += VLAN_HLEN; in __skb_array_len_with_tag()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | txrx.h | 25 #define MLX5E_MAX_TX_INLINE_DS DIV_ROUND_UP(366 - INL_HDR_START_SZ + VLAN_HLEN, \ 424 eseg->swp_outer_l3_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan() 425 eseg->swp_outer_l4_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan() 426 eseg->swp_inner_l3_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan() 427 eseg->swp_inner_l4_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan()
|
D | xdp.h | 40 #define MLX5E_XDP_MIN_INLINE (ETH_HLEN + VLAN_HLEN)
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 108 #define VLAN_HLEN 4 macro 168 .nhoff = ETH_HLEN + VLAN_HLEN, 169 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr), 191 .nhoff = ETH_HLEN + VLAN_HLEN * 2, 192 .thoff = ETH_HLEN + VLAN_HLEN * 2 +
|
/linux-6.6.21/drivers/net/vmxnet3/ |
D | vmxnet3_xdp.h | 24 2 * VLAN_HLEN - ETH_FCS_LEN)
|
/linux-6.6.21/net/core/ |
D | ptp_classifier.c | 115 ptr += VLAN_HLEN; in ptp_parse_header()
|
/linux-6.6.21/drivers/net/fjes/ |
D | fjes_hw.h | 65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN) 70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
|
/linux-6.6.21/net/dsa/ |
D | tag_sja1105.c | 733 *offset = VLAN_HLEN; in sja1110_flow_dissect() 734 *proto = ((__be16 *)skb->data)[(VLAN_HLEN / 2) - 1]; in sja1110_flow_dissect() 779 .needed_headroom = VLAN_HLEN, 795 .needed_headroom = SJA1110_HEADER_LEN + VLAN_HLEN,
|
D | tag_ocelot_8021q.c | 132 .needed_headroom = VLAN_HLEN,
|
D | tag_brcm.c | 273 len += VLAN_HLEN; in brcm_leg_tag_rcv()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tx.c | 60 #define MLX5E_MIN_INLINE (ETH_HLEN + VLAN_HLEN) in mlx5e_skb_l2_header_offset() 84 hlen += VLAN_HLEN; in mlx5e_calc_min_inline() 319 inl += VLAN_HLEN; in mlx5e_sq_calc_wqe_attr() 451 ihs += VLAN_HLEN; in mlx5e_sq_xmit_wqe() 468 ihs += VLAN_HLEN; in mlx5e_sq_xmit_wqe()
|
/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/drivers/net/ethernet/intel/igc/ |
D | igc_xdp.c | 59 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) { in igc_xdp_enable_pool()
|
/linux-6.6.21/drivers/net/ethernet/sun/ |
D | sunvnet_common.h | 12 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
|
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_xdp.c | 25 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) in stmmac_xdp_enable_pool()
|
/linux-6.6.21/drivers/vdpa/mlx5/core/ |
D | mlx5_vdpa.h | 12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
|
/linux-6.6.21/net/8021q/ |
D | vlan_dev.c | 57 vhdr = skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header() 74 vhdrlen = VLAN_HLEN; in vlan_dev_hard_header() 148 max_mtu -= VLAN_HLEN; in vlan_dev_change_mtu() 623 dev->hard_header_len = real_dev->hard_header_len + VLAN_HLEN; in vlan_dev_init()
|
/linux-6.6.21/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_net.c | 737 if (skb_headroom(skb) < VLAN_HLEN) { in gelic_put_vlan_tag() 740 skb = skb_realloc_headroom(sk_tmp, VLAN_HLEN); in gelic_put_vlan_tag() 745 veth = skb_push(skb, VLAN_HLEN); in gelic_put_vlan_tag() 748 memmove(skb->data, skb->data + VLAN_HLEN, 2 * ETH_ALEN); in gelic_put_vlan_tag() 1486 netdev->hard_header_len += VLAN_HLEN; in gelic_net_setup_netdev()
|
/linux-6.6.21/drivers/net/usb/ |
D | cdc_eem.c | 79 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN; in eem_bind()
|
/linux-6.6.21/net/batman-adv/ |
D | gateway_client.c | 585 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get() 590 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
|
/linux-6.6.21/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 425 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() 727 + ETH_HLEN + VLAN_HLEN in atl1e_init_ring_resources() 939 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1123 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure() 2273 netdev->min_mtu = ETH_ZLEN - (ETH_HLEN + VLAN_HLEN); in atl1e_init_netdev() 2275 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in atl1e_init_netdev()
|
/linux-6.6.21/net/hsr/ |
D | hsr_forward.c | 140 copylen += VLAN_HLEN; in create_stripped_skb_hsr() 310 movelen += VLAN_HLEN; in hsr_create_tagged_frame()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 512 first_desc->hdr_length += VLAN_HLEN; in qlcnic_tx_pkt() 513 first_desc->tcp_hdr_offset = VLAN_HLEN; in qlcnic_tx_pkt() 514 first_desc->ip_hdr_offset = VLAN_HLEN; in qlcnic_tx_pkt() 524 offset, hdr_len + VLAN_HLEN); in qlcnic_tx_pkt() 534 copied = copy_len - VLAN_HLEN; in qlcnic_tx_pkt() 1176 memmove(skb->data + VLAN_HLEN, eth_hdr, ETH_ALEN * 2); in qlcnic_check_rx_tagging() 1177 skb_pull(skb, VLAN_HLEN); in qlcnic_check_rx_tagging()
|
/linux-6.6.21/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 677 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe() 679 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
|