Home
last modified time | relevance | path

Searched refs:vlan_proto (Results 1 – 25 of 128) sorted by relevance

123456

/linux-6.12.1/include/linux/
Dif_vlan.h142 __be16 vlan_proto, u16 vlan_id);
186 __be16 vlan_proto; member
241 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument
349 __be16 vlan_proto, u16 vlan_tci, in __vlan_insert_inner_tag() argument
372 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag()
398 __be16 vlan_proto, u16 vlan_tci) in __vlan_insert_tag() argument
400 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); in __vlan_insert_tag()
419 __be16 vlan_proto, in vlan_insert_inner_tag() argument
425 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag()
448 __be16 vlan_proto, u16 vlan_tci) in vlan_insert_tag() argument
[all …]
Dif_link.h31 __be16 vlan_proto; member
/linux-6.12.1/net/8021q/
Dvlan.h68 __be16 vlan_proto, in vlan_group_get_device() argument
71 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_get_device()
80 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument
83 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_set_device()
95 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument
101 vlan_proto, vlan_id); in vlan_find_dev()
Dvlan.c51 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument
60 pidx = vlan_proto_idx(vlan_proto); in vlan_group_prealloc_vid()
111 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
125 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
157 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
175 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
193 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, dev); in register_vlan_dev()
207 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
270 vlan->vlan_proto = htons(ETH_P_8021Q); in register_vlan_device()
324 if (vlan_hw_offload_capable(dev->features, vlan->vlan_proto)) in vlan_transfer_features()
Dvlan_core.c13 __be16 vlan_proto = skb->vlan_proto; in vlan_do_receive() local
18 vlan_dev = vlan_find_dev(skb->dev, vlan_proto, vlan_id); in vlan_do_receive()
52 skb = *skbp = vlan_insert_inner_tag(skb, skb->vlan_proto, in vlan_do_receive()
77 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument
83 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
95 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
121 return vlan_dev_priv(dev)->vlan_proto; in vlan_dev_vlan_proto()
Dvlan_gvrp.c32 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_join()
43 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_leave()
Dvlan_mvrp.c38 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_join()
49 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_leave()
Dvlan_netlink.c169 vlan->vlan_proto = proto; in vlan_newlink()
175 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
229 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
Dvlan_dev.c72 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header()
73 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header()
113 veth->h_vlan_proto != vlan->vlan_proto) { in vlan_dev_hard_start_xmit()
117 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
599 if (vlan_hw_offload_capable(real_dev->features, vlan->vlan_proto)) { in vlan_dev_init()
779 path->encap.proto = vlan->vlan_proto; in vlan_dev_fill_forward_path()
786 ctx->vlan[ctx->num_vlans].proto = vlan->vlan_proto; in vlan_dev_fill_forward_path()
/linux-6.12.1/include/trace/events/
Dnet.h25 __field( u16, vlan_proto )
45 __entry->vlan_proto = ntohs(skb->vlan_proto);
64 __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci,
177 __field( u16, vlan_proto )
203 __entry->vlan_proto = ntohs(skb->vlan_proto);
221 __entry->skbaddr, __entry->vlan_tagged, __entry->vlan_proto,
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c90 mlx5_esw_bridge_ingress_vlan_proto_fg_create(unsigned int from, unsigned int to, u16 vlan_proto, in mlx5_esw_bridge_ingress_vlan_proto_fg_create() argument
108 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_ingress_vlan_proto_fg_create()
110 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_ingress_vlan_proto_fg_create()
125 vlan_proto, PTR_ERR(fg)); in mlx5_esw_bridge_ingress_vlan_proto_fg_create()
153 u16 vlan_proto, struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create() argument
170 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create()
172 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create()
248 mlx5_esw_bridge_egress_vlan_proto_fg_create(unsigned int from, unsigned int to, u16 vlan_proto, in mlx5_esw_bridge_egress_vlan_proto_fg_create() argument
265 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_egress_vlan_proto_fg_create()
267 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_egress_vlan_proto_fg_create()
[all …]
Dbridge_mcast.c94 if (bridge->vlan_proto == ETH_P_8021Q) { in mlx5_esw_bridge_mdb_flow_create()
99 } else if (bridge->vlan_proto == ETH_P_8021AD) { in mlx5_esw_bridge_mdb_flow_create()
367 mlx5_esw_bridge_mcast_vlan_proto_fg_create(unsigned int from, unsigned int to, u16 vlan_proto, in mlx5_esw_bridge_mcast_vlan_proto_fg_create() argument
382 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_mcast_vlan_proto_fg_create()
384 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_mcast_vlan_proto_fg_create()
396 vlan_proto, fg); in mlx5_esw_bridge_mcast_vlan_proto_fg_create()
572 mlx5_esw_bridge_mcast_vlan_flow_create(u16 vlan_proto, struct mlx5_esw_bridge_port *port, in mlx5_esw_bridge_mcast_vlan_flow_create() argument
597 if (vlan_proto == ETH_P_8021Q) { in mlx5_esw_bridge_mcast_vlan_flow_create()
602 } else if (vlan_proto == ETH_P_8021AD) { in mlx5_esw_bridge_mcast_vlan_flow_create()
621 int mlx5_esw_bridge_vlan_mcast_init(u16 vlan_proto, struct mlx5_esw_bridge_port *port, in mlx5_esw_bridge_vlan_mcast_init() argument
[all …]
Dbridge_priv.h220 u16 vlan_proto; member
229 int mlx5_esw_bridge_vlan_mcast_init(u16 vlan_proto, struct mlx5_esw_bridge_port *port,
/linux-6.12.1/net/bridge/
Dbr_arp_nd_proxy.c48 __be16 vlan_proto, u16 vlan_tci) in br_arp_send() argument
77 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in br_arp_send()
176 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_proxy_suppress_arp()
213 skb->vlan_proto, in br_do_proxy_suppress_arp()
251 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument
354 __vlan_hwaccel_put_tag(reply, vlan_proto, vlan_tci); in br_nd_send()
435 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_suppress_nd()
467 skb->vlan_proto, in br_do_suppress_nd()
Dbr_netfilter_hooks.c81 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() function
95 return vlan_proto(skb) == htons(ETH_P_IP) && brnet->filter_vlan_tagged; in is_vlan_ip()
103 return vlan_proto(skb) == htons(ETH_P_IPV6) && in is_vlan_ipv6()
111 return vlan_proto(skb) == htons(ETH_P_ARP) && brnet->filter_vlan_tagged; in is_vlan_arp()
147 __be16 vlan_proto; member
467 vlan = __vlan_find_dev_deep_rcu(br, skb->vlan_proto, in brnf_get_logical_dev()
821 if (data->vlan_proto) in br_nf_push_frag_xmit()
822 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in br_nf_push_frag_xmit()
904 data->vlan_proto = skb->vlan_proto; in br_nf_dev_queue_xmit()
906 data->vlan_proto = 0; in br_nf_dev_queue_xmit()
Dbr_vlan.c114 return vlan_vid_add(dev, br->vlan_proto, v->vid); in __vlan_vid_add()
154 vlan_vid_del(dev, br->vlan_proto, v->vid); in __vlan_vid_del()
550 skb->protocol == br->vlan_proto)) { in __allowed_ingress()
558 if (skb->vlan_proto != br->vlan_proto) { in __allowed_ingress()
561 skb = vlan_insert_tag_set_proto(skb, skb->vlan_proto, in __allowed_ingress()
594 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress()
693 if (!br_vlan_get_tag(skb, vid) && skb->vlan_proto != br->vlan_proto) in br_should_learn()
864 br->vlan_proto == htons(ETH_P_8021Q)) { in recalculate_group_addr()
878 br->vlan_proto == htons(ETH_P_8021Q)) in br_recalculate_fwd_mask()
930 *p_proto = ntohs(br->vlan_proto); in br_vlan_get_proto()
[all …]
/linux-6.12.1/net/sched/
Dsch_frag.c15 __be16 vlan_proto; member
36 __vlan_hwaccel_put_tag(skb, data->vlan_proto, in sch_frag_xmit()
65 data->vlan_proto = skb->vlan_proto; in sch_frag_prepare_frag()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_txrx_lib.c230 if ((vlan_tci & VLAN_VID_MASK) && rx_ring->vlan_proto) in ice_receive_skb()
231 __vlan_hwaccel_put_tag(skb, rx_ring->vlan_proto, in ice_receive_skb()
541 static int ice_xdp_rx_vlan_tag(const struct xdp_md *ctx, __be16 *vlan_proto, in ice_xdp_rx_vlan_tag() argument
546 *vlan_proto = xdp_ext->pkt_ctx->vlan_proto; in ice_xdp_rx_vlan_tag()
547 if (!*vlan_proto) in ice_xdp_rx_vlan_tag()
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c97 __be16 vlan_proto) in nfp_app_set_vf_vlan() argument
110 if (!eth_type_vlan(vlan_proto)) in nfp_app_set_vf_vlan()
124 if (vlan_proto != htons(ETH_P_8021Q)) { in nfp_app_set_vf_vlan()
139 vlan_tag |= FIELD_PREP(NFP_NET_VF_CFG_VLAN_PROT, ntohs(vlan_proto)); in nfp_app_set_vf_vlan()
291 ivi->vlan_proto = htons(FIELD_GET(NFP_NET_VF_CFG_VLAN_PROT, vlan_tag)); in nfp_app_get_vf_config()
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dsriov.h27 u8 qos, __be16 vlan_proto) in efx_sriov_set_vf_vlan() argument
36 if (vlan_proto != htons(ETH_P_8021Q)) in efx_sriov_set_vf_vlan()
/linux-6.12.1/drivers/net/ethernet/sfc/
Dsriov.c22 u8 qos, __be16 vlan_proto) in efx_sriov_set_vf_vlan() argument
31 if (vlan_proto != htons(ETH_P_8021Q)) in efx_sriov_set_vf_vlan()
Dsriov.h16 u8 qos, __be16 vlan_proto);
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dvlan.c62 attr->vlan_proto[vlan_idx] = act->vlan.proto; in parse_tc_vlan_action()
63 if (!attr->vlan_proto[vlan_idx]) in parse_tc_vlan_action()
64 attr->vlan_proto[vlan_idx] = htons(ETH_P_8021Q); in parse_tc_vlan_action()
/linux-6.12.1/net/dsa/
Dtag_8021q.c536 __be16 vlan_proto; in dsa_8021q_rcv() local
540 vlan_proto = skb->vlan_proto; in dsa_8021q_rcv()
546 vlan_proto = hdr->h_vlan_proto; in dsa_8021q_rcv()
560 __vlan_hwaccel_put_tag(skb, vlan_proto, tci); in dsa_8021q_rcv()
Dtag.h73 if (vid == pvid && skb->vlan_proto == htons(proto)) in dsa_software_untag_vlan_aware_bridge()
120 if (vid != pvid || skb->vlan_proto != htons(proto)) in dsa_software_untag_vlan_unaware_bridge()

123456