Home
last modified time | relevance | path

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

123456

/linux-6.6.21/include/linux/
Dif_vlan.h16 #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()
Dskb_array.h152 len += VLAN_HLEN; in __skb_array_len_with_tag()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h25 #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()
Dxdp.h40 #define MLX5E_XDP_MIN_INLINE (ETH_HLEN + VLAN_HLEN)
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c108 #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/
Dvmxnet3_xdp.h24 2 * VLAN_HLEN - ETH_FCS_LEN)
/linux-6.6.21/net/core/
Dptp_classifier.c115 ptr += VLAN_HLEN; in ptp_parse_header()
/linux-6.6.21/drivers/net/fjes/
Dfjes_hw.h65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN)
70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
/linux-6.6.21/net/dsa/
Dtag_sja1105.c733 *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,
Dtag_ocelot_8021q.c132 .needed_headroom = VLAN_HLEN,
Dtag_brcm.c273 len += VLAN_HLEN; in brcm_leg_tag_rcv()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c60 #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/
Dotx2_txrx.h23 #define OTX2_ETH_HLEN (VLAN_ETH_HLEN + VLAN_HLEN)
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_xdp.c59 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) { in igc_xdp_enable_pool()
/linux-6.6.21/drivers/net/ethernet/sun/
Dsunvnet_common.h12 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_xdp.c25 if (frame_size < ETH_FRAME_LEN + VLAN_HLEN * 2) in stmmac_xdp_enable_pool()
/linux-6.6.21/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
/linux-6.6.21/net/8021q/
Dvlan_dev.c57 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/
Dps3_gelic_net.c737 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/
Dcdc_eem.c79 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN; in eem_bind()
/linux-6.6.21/net/batman-adv/
Dgateway_client.c585 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/
Datl1e_main.c425 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/
Dhsr_forward.c140 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/
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-6.6.21/drivers/net/ethernet/qualcomm/emac/
Demac.c677 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
679 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()

123456