| /linux/net/8021q/ |
| H A D | vlan.h | 69 __be16 vlan_proto, in vlan_group_get_device() argument 72 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_get_device() 81 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument 84 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_set_device() 96 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument 102 vlan_proto, vlan_id); in vlan_find_dev()
|
| H A D | vlan.c | 50 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument 59 pidx = vlan_proto_idx(vlan_proto); in vlan_group_prealloc_vid() 110 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev() 124 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() 209 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev() 272 vlan->vlan_proto = htons(ETH_P_8021Q); in register_vlan_device() 326 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_netlink.c | 170 vlan->vlan_proto = proto; in vlan_newlink() 176 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink() 230 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
|
| H A D | vlan_dev.c | 73 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header() 74 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header() 114 veth->h_vlan_proto != vlan->vlan_proto) { in vlan_dev_hard_start_xmit() 118 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit() 575 if (vlan_hw_offload_capable(real_dev->features, vlan->vlan_proto)) { in vlan_dev_init() 755 path->encap.proto = vlan->vlan_proto; in vlan_dev_fill_forward_path() 762 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 ) 46 __entry->vlan_proto = ntohs(skb->vlan_proto); 64 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 net_cookie=%llu", 66 __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci, 191 __field( u16, vlan_proto ) 218 __entry->vlan_proto = ntohs(skb->vlan_proto); 235 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 net_cookie=%llu", 237 __entry->skbaddr, __entry->vlan_tagged, __entry->vlan_proto, [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | bridge.c | 91 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 109 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_ingress_vlan_proto_fg_create() 111 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_ingress_vlan_proto_fg_create() 126 vlan_proto, fg); in mlx5_esw_bridge_ingress_vlan_proto_fg_create() 154 u16 vlan_proto, struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create() argument 171 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create() 173 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create() 249 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 266 if (vlan_proto == ETH_P_8021Q) in mlx5_esw_bridge_egress_vlan_proto_fg_create() 268 else if (vlan_proto == ETH_P_8021AD) in mlx5_esw_bridge_egress_vlan_proto_fg_create() [all …]
|
| 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/sched/ |
| H A D | sch_frag.c | 15 __be16 vlan_proto; member 40 __vlan_hwaccel_put_tag(skb, data->vlan_proto, in sch_frag_xmit() 69 data->vlan_proto = skb->vlan_proto; in sch_frag_prepare_frag()
|
| /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()
|
| /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 | mae.c | 668 CHECK(VLAN0_PROTO, vlan_proto[0]) || in efx_mae_match_check_caps() 670 CHECK(VLAN1_PROTO, vlan_proto[1]) || in efx_mae_match_check_caps() 763 CHECK(ENC_VLAN0_PROTO, vlan_proto[0]) || in efx_mae_match_check_caps_lhs() 765 CHECK(ENC_VLAN1_PROTO, vlan_proto[1]) || in efx_mae_match_check_caps_lhs() 1319 act->vlan_proto[0]); in efx_mae_alloc_action_set() 1325 act->vlan_proto[1]); in efx_mae_alloc_action_set() 1586 match->value.vlan_proto[0]); in efx_mae_populate_lhs_match_criteria() 1588 match->mask.vlan_proto[0]); in efx_mae_populate_lhs_match_criteria() 1594 match->value.vlan_proto[1]); in efx_mae_populate_lhs_match_criteria() 1596 match->mask.vlan_proto[1]); in efx_mae_populate_lhs_match_criteria() [all …]
|
| 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/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/ |
| H A D | br_netfilter_hooks.c | 81 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 442 vlan = __vlan_find_dev_deep_rcu(br, skb->vlan_proto, in brnf_get_logical_dev() 793 if (data->vlan_proto) in br_nf_push_frag_xmit() 794 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in br_nf_push_frag_xmit() 876 data->vlan_proto = skb->vlan_proto; in br_nf_dev_queue_xmit() 878 data->vlan_proto = 0; in br_nf_dev_queue_xmit()
|
| H A D | br_vlan.c | 114 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() 552 skb->protocol == br->vlan_proto)) { in __allowed_ingress() 560 if (skb->vlan_proto != br->vlan_proto) { in __allowed_ingress() 563 skb = vlan_insert_tag_set_proto(skb, skb->vlan_proto, in __allowed_ingress() 596 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress() 695 if (!br_vlan_get_tag(skb, vid) && skb->vlan_proto != br->vlan_proto) in br_should_learn() 868 br->vlan_proto == htons(ETH_P_8021Q)) { in recalculate_group_addr() 882 br->vlan_proto == htons(ETH_P_8021Q)) in br_recalculate_fwd_mask() 934 *p_proto = ntohs(br->vlan_proto); in br_vlan_get_proto() [all …]
|
| /linux/net/bridge/netfilter/ |
| H A D | nf_conntrack_bridge.c | 329 data->vlan_proto = skb->vlan_proto; in nf_ct_bridge_frag_save() 375 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
|
| /linux/include/linux/ |
| H A D | if_link.h | 31 __be16 vlan_proto; member
|