/linux-6.1.9/include/linux/ |
D | if_vlan.h | 16 #define VLAN_HLEN 4 /* The additional bytes required by VLAN macro 346 if (skb_cow_head(skb, VLAN_HLEN) < 0) in __vlan_insert_inner_tag() 349 skb_push(skb, VLAN_HLEN); in __vlan_insert_inner_tag() 353 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag() 354 skb->mac_header -= VLAN_HLEN; in __vlan_insert_inner_tag() 598 if (WARN_ON(vlan_depth < VLAN_HLEN)) in __vlan_get_protocol() 600 vlan_depth -= VLAN_HLEN; in __vlan_get_protocol() 612 vlan_depth += VLAN_HLEN; in __vlan_get_protocol()
|
D | skb_array.h | 152 len += VLAN_HLEN; in __skb_array_len_with_tag()
|
/linux-6.1.9/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, \ 405 eseg->swp_outer_l3_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan() 406 eseg->swp_outer_l4_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan() 407 eseg->swp_inner_l3_offset += VLAN_HLEN / 2; in mlx5e_eseg_swp_offsets_add_vlan() 408 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.1.9/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.1.9/net/core/ |
D | ptp_classifier.c | 115 ptr += VLAN_HLEN; in ptp_parse_header()
|
/linux-6.1.9/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.1.9/net/dsa/ |
D | tag_sja1105.c | 745 *offset = VLAN_HLEN; in sja1110_flow_dissect() 746 *proto = ((__be16 *)skb->data)[(VLAN_HLEN / 2) - 1]; in sja1110_flow_dissect() 796 .needed_headroom = VLAN_HLEN, 812 .needed_headroom = SJA1110_HEADER_LEN + VLAN_HLEN,
|
D | tag_ocelot_8021q.c | 128 .needed_headroom = VLAN_HLEN,
|
/linux-6.1.9/net/8021q/ |
D | vlan_dev.c | 56 vhdr = skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header() 73 vhdrlen = VLAN_HLEN; in vlan_dev_hard_header() 147 max_mtu -= VLAN_HLEN; in vlan_dev_change_mtu() 604 dev->hard_header_len = real_dev->hard_header_len + VLAN_HLEN; in vlan_dev_init()
|
/linux-6.1.9/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() 446 ihs += VLAN_HLEN; in mlx5e_sq_xmit_wqe() 463 ihs += VLAN_HLEN; in mlx5e_sq_xmit_wqe()
|
/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/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.1.9/drivers/net/ethernet/sun/ |
D | sunvnet_common.h | 12 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
|
/linux-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_xdp.c | 54 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) { in igc_xdp_enable_pool()
|
/linux-6.1.9/drivers/vdpa/mlx5/core/ |
D | mlx5_vdpa.h | 12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
|
/linux-6.1.9/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_net.c | 734 if (skb_headroom(skb) < VLAN_HLEN) { in gelic_put_vlan_tag() 737 skb = skb_realloc_headroom(sk_tmp, VLAN_HLEN); in gelic_put_vlan_tag() 742 veth = skb_push(skb, VLAN_HLEN); in gelic_put_vlan_tag() 745 memmove(skb->data, skb->data + VLAN_HLEN, 2 * ETH_ALEN); in gelic_put_vlan_tag() 1483 netdev->hard_header_len += VLAN_HLEN; in gelic_net_setup_netdev()
|
/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() 52 vlan_hlen += VLAN_HLEN; in nft_payload_copy_vlan() 76 offset -= VLAN_HLEN + vlan_hlen; in nft_payload_copy_vlan()
|
/linux-6.1.9/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.1.9/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.1.9/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() 936 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1120 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure() 2267 netdev->min_mtu = ETH_ZLEN - (ETH_HLEN + VLAN_HLEN); in atl1e_init_netdev() 2269 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in atl1e_init_netdev()
|
/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 678 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe() 680 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_mac.c | 487 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()
|