Home
last modified time | relevance | path

Searched refs:VLAN_HLEN (Results 1 – 25 of 123) sorted by relevance

12345

/Linux-v5.4/include/linux/
Dif_vlan.h16 #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()
Dskb_array.h152 len += VLAN_HLEN; in __skb_array_len_with_tag()
/Linux-v5.4/net/dsa/
Dtag_8021q.c332 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,
Dtag_sja1105.c302 .overhead = VLAN_HLEN,
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c101 #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/
Dfjes_hw.h65 (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/
Den_tx.c101 #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/
Dvlan_dev.c56 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()
Dvlan_netlink.c174 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
/Linux-v5.4/net/hsr/
Dhsr_forward.c106 copylen += VLAN_HLEN; in create_stripped_skb()
168 movelen += VLAN_HLEN; in create_tagged_skb()
/Linux-v5.4/drivers/net/ethernet/sun/
Dsunvnet_common.h12 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
/Linux-v5.4/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c736 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/
Denetc.h18 (ETH_FCS_LEN + ETH_HLEN + VLAN_HLEN))
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.h38 #define MLX5E_XDP_MIN_INLINE (ETH_HLEN + VLAN_HLEN)
/Linux-v5.4/drivers/net/usb/
Dcdc_eem.c79 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN; in eem_bind()
/Linux-v5.4/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c430 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/
Dgateway_client.c644 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/
Dqlcnic_io.c512 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/
Demac.c680 (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/
Dskbuff.c5292 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/
Dhns_dsaf_mac.c486 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/
Dact_csum.c610 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/
Dbnad.h102 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
/Linux-v5.4/drivers/net/ethernet/atheros/alx/
Dhw.h348 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h119 #define I40E_PACKET_HDR_PAD (ETH_HLEN + ETH_FCS_LEN + (VLAN_HLEN * 2))

12345