/linux/include/linux/ |
H A D | if_vlan.h | 142 __be16 vlan_proto, u16 vlan_id); 187 __be16 vlan_proto; member 242 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument 350 __be16 vlan_proto, u16 vlan_tci, in __vlan_insert_inner_tag() argument 373 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag() 399 __be16 vlan_proto, u16 vlan_tci) in __vlan_insert_tag() argument 401 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); in __vlan_insert_tag() 422 __be16 vlan_proto, in vlan_insert_inner_tag() argument 428 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag() 453 __be16 vlan_proto, u16 vlan_tci) in vlan_insert_tag() argument [all …]
|
H A D | if_link.h | 31 __be16 vlan_proto; member
|
H A D | netfilter_bridge.h | 12 __be16 vlan_proto; member
|
/linux/net/8021q/ |
H A D | vlan.h | 68 __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()
|
H A D | vlan.c | 51 __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() 158 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev() 176 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev() 194 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, dev); in register_vlan_dev() 208 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev() 271 vlan->vlan_proto = htons(ETH_P_8021Q); in register_vlan_device() 325 if (vlan_hw_offload_capable(dev->features, vlan->vlan_proto)) in vlan_transfer_features()
|
H A D | vlan_core.c | 13 __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()
|
H A D | vlan_gvrp.c | 32 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()
|
H A D | vlan_mvrp.c | 38 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()
|
H A D | vlan_dev.c | 72 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/include/trace/events/ |
H A D | net.h | 25 __field( u16, vlan_proto ) 45 __entry->vlan_proto = ntohs(skb->vlan_proto); 62 TP_printk("dev=%s queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d len=%u data_len=%u network_offset=%d transport_offset_valid=%d transport_offset=%d tx_flags=%d gso_size=%d gso_segs=%d gso_type=%#x", 64 __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci, 177 __field( u16, vlan_proto ) 203 __entry->vlan_proto = ntohs(skb->vlan_proto); 219 TP_printk("dev=%s napi_id=%#x queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u mac_header_valid=%d mac_header=%d nr_frags=%d gso_size=%d gso_type=%#x", 221 __entry->skbaddr, __entry->vlan_tagged, __entry->vlan_proto, [all...] |
/linux/net/sched/ |
H A D | sch_frag.c | 15 __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/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx_lib.c | 230 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/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_sriov.c | 97 __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()
|
H A D | nfp_net_sriov.h | 61 __be16 vlan_proto);
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | sriov.h | 27 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/drivers/net/ethernet/sfc/ |
H A D | sriov.c | 22 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()
|
H A D | sriov.h | 16 u8 qos, __be16 vlan_proto);
|
H A D | tc.h | 76 __be16 vlan_proto[2]; member 95 __be16 vlan_tci[2], vlan_proto[2]; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | vlan.c | 62 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/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_mcast.c | 94 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 …]
|
H A D | bridge_priv.h | 220 u16 vlan_proto; member 229 int mlx5_esw_bridge_vlan_mcast_init(u16 vlan_proto, struct mlx5_esw_bridge_port *port,
|
/linux/net/dsa/ |
H A D | tag_8021q.c | 536 __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()
|
H A D | tag.h | 73 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()
|
/linux/net/bridge/netfilter/ |
H A D | nf_conntrack_bridge.c | 330 data->vlan_proto = skb->vlan_proto; in nf_ct_bridge_frag_save() 376 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cmd.c | 1856 vp_oper->state.vlan_proto == vp_admin->vlan_proto && in mlx4_master_immediate_activate_vlan_qos() 1915 vp_oper->state.vlan_proto = vp_admin->vlan_proto; in mlx4_master_immediate_activate_vlan_qos() 1929 work->vlan_proto = vp_oper->state.vlan_proto; in mlx4_master_immediate_activate_vlan_qos() 2011 if (vp_admin->vlan_proto != htons(ETH_P_8021AD) || in mlx4_master_activate_admin_state() 2013 vp_oper->state.vlan_proto = vp_admin->vlan_proto; in mlx4_master_activate_admin_state() 2030 vp_oper->state.vlan_proto = htons(ETH_P_8021Q); in mlx4_master_activate_admin_state() 2427 admin_vport->vlan_proto = htons(ETH_P_8021Q); in mlx4_multi_func_init() 2428 oper_vport->vlan_proto = htons(ETH_P_8021Q); in mlx4_multi_func_init() 3058 vf_admin->vlan_proto = proto; in mlx4_set_vf_vlan() 3071 vf_oper->state.vlan_proto != proto) || in mlx4_set_vf_vlan() [all …]
|