/Linux-v5.4/include/linux/ |
D | if_vlan.h | 16 #define VLAN_HLEN 4 /* The additional bytes required by VLAN macro 339 if (skb_cow_head(skb, VLAN_HLEN) < 0) in __vlan_insert_inner_tag() 342 skb_push(skb, VLAN_HLEN); in __vlan_insert_inner_tag() 346 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag() 347 skb->mac_header -= VLAN_HLEN; in __vlan_insert_inner_tag() 591 if (WARN_ON(vlan_depth < VLAN_HLEN)) in __vlan_get_protocol() 593 vlan_depth -= VLAN_HLEN; in __vlan_get_protocol() 601 vlan_depth + VLAN_HLEN))) in __vlan_get_protocol() 606 vlan_depth += VLAN_HLEN; in __vlan_get_protocol()
|
D | skb_array.h | 152 len += VLAN_HLEN; in __skb_array_len_with_tag()
|
/Linux-v5.4/net/dsa/ |
D | tag_8021q.c | 332 u8 *dest = from + VLAN_HLEN; in dsa_8021q_remove_header() 334 memmove(dest, from, ETH_HLEN - VLAN_HLEN); in dsa_8021q_remove_header() 335 skb_pull(skb, VLAN_HLEN); in dsa_8021q_remove_header() 348 .overhead = VLAN_HLEN,
|
D | tag_sja1105.c | 302 .overhead = VLAN_HLEN,
|
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 101 #define VLAN_HLEN 4 macro 158 .nhoff = ETH_HLEN + VLAN_HLEN, 159 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr), 180 .nhoff = ETH_HLEN + VLAN_HLEN * 2, 181 .thoff = ETH_HLEN + VLAN_HLEN * 2 +
|
/Linux-v5.4/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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tx.c | 101 #define MLX5E_MIN_INLINE (ETH_HLEN + VLAN_HLEN) in mlx5e_skb_l2_header_offset() 125 hlen += VLAN_HLEN; in mlx5e_calc_min_inline() 312 ihs += !!skb_vlan_tag_present(skb) * VLAN_HLEN; in mlx5e_sq_xmit() 354 ihs -= VLAN_HLEN; in mlx5e_sq_xmit()
|
/Linux-v5.4/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() 148 max_mtu -= VLAN_HLEN; in vlan_dev_change_mtu() 575 dev->hard_header_len = real_dev->hard_header_len + VLAN_HLEN; in vlan_dev_init()
|
D | vlan_netlink.c | 174 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
|
/Linux-v5.4/net/hsr/ |
D | hsr_forward.c | 106 copylen += VLAN_HLEN; in create_stripped_skb() 168 movelen += VLAN_HLEN; in create_tagged_skb()
|
/Linux-v5.4/drivers/net/ethernet/sun/ |
D | sunvnet_common.h | 12 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
|
/Linux-v5.4/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_net.c | 736 if (skb_headroom(skb) < VLAN_HLEN) { in gelic_put_vlan_tag() 739 skb = skb_realloc_headroom(sk_tmp, VLAN_HLEN); in gelic_put_vlan_tag() 744 veth = skb_push(skb, VLAN_HLEN); in gelic_put_vlan_tag() 747 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-v5.4/drivers/net/ethernet/freescale/enetc/ |
D | enetc.h | 18 (ETH_FCS_LEN + ETH_HLEN + VLAN_HLEN))
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | xdp.h | 38 #define MLX5E_XDP_MIN_INLINE (ETH_HLEN + VLAN_HLEN)
|
/Linux-v5.4/drivers/net/usb/ |
D | cdc_eem.c | 79 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN; in eem_bind()
|
/Linux-v5.4/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 430 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu() 608 VLAN_HLEN + ETH_FCS_LEN + 7) >> 3; in atl1e_sw_init() 730 + ETH_HLEN + VLAN_HLEN in atl1e_init_ring_resources() 938 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1122 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure() 2259 netdev->min_mtu = ETH_ZLEN - (ETH_HLEN + VLAN_HLEN); in atl1e_init_netdev() 2261 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in atl1e_init_netdev()
|
/Linux-v5.4/net/batman-adv/ |
D | gateway_client.c | 644 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get() 649 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
|
/Linux-v5.4/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-v5.4/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 680 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe() 682 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
|
/Linux-v5.4/net/core/ |
D | skbuff.c | 5292 if (likely(mac_len > VLAN_HLEN + ETH_TLEN)) { in skb_reorder_vlan_header() 5293 memmove(skb_mac_header(skb) + VLAN_HLEN, skb_mac_header(skb), in skb_reorder_vlan_header() 5294 mac_len - VLAN_HLEN - ETH_TLEN); in skb_reorder_vlan_header() 5300 memmove(meta + VLAN_HLEN, meta, meta_len); in skb_reorder_vlan_header() 5303 skb->mac_header += VLAN_HLEN; in skb_reorder_vlan_header() 5321 if (unlikely(!pskb_may_pull(skb, VLAN_HLEN))) in skb_vlan_untag() 5328 skb_pull_rcsum(skb, VLAN_HLEN); in skb_vlan_untag() 5378 skb_postpull_rcsum(skb, skb->data + (2 * ETH_ALEN), VLAN_HLEN); in __skb_vlan_pop() 5383 memmove(skb->data + VLAN_HLEN, skb->data, 2 * ETH_ALEN); in __skb_vlan_pop() 5384 __skb_pull(skb, VLAN_HLEN); in __skb_vlan_pop() [all …]
|
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_mac.c | 486 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in hns_mac_set_mtu() 495 if (new_frm < (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)) in hns_mac_set_mtu() 496 new_frm = (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN); in hns_mac_set_mtu()
|
/Linux-v5.4/net/sched/ |
D | act_csum.c | 610 skb_pull(skb, VLAN_HLEN); in tcf_csum_act() 620 skb_push(skb, VLAN_HLEN); in tcf_csum_act()
|
/Linux-v5.4/drivers/net/ethernet/brocade/bna/ |
D | bnad.h | 102 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
|
/Linux-v5.4/drivers/net/ethernet/atheros/alx/ |
D | hw.h | 348 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
|
/Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.h | 119 #define I40E_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))
|