Home
last modified time | relevance | path

Searched refs:vlan_tpid (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.1/net/netfilter/
Dnf_tables_offload.c63 (match->key.vlan.vlan_tpid == htons(ETH_P_8021Q) || in nft_flow_rule_transfer_vlan()
64 match->key.vlan.vlan_tpid == htons(ETH_P_8021AD))) { in nft_flow_rule_transfer_vlan()
65 match->key.basic.n_proto = match->key.cvlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
66 match->mask.basic.n_proto = match->mask.cvlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
67 match->key.cvlan.vlan_tpid = match->key.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
68 match->mask.cvlan.vlan_tpid = match->mask.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
69 match->key.vlan.vlan_tpid = ethertype.value; in nft_flow_rule_transfer_vlan()
70 match->mask.vlan.vlan_tpid = ethertype.mask; in nft_flow_rule_transfer_vlan()
77 match->key.basic.n_proto = match->key.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
78 match->mask.basic.n_proto = match->mask.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
[all …]
Dnft_payload.c308 vlan_tpid, sizeof(__be16), reg); in nft_payload_offload_ll()
325 vlan_tpid, sizeof(__be16), reg); in nft_payload_offload_ll()
Dnf_flow_table_offload.c86 key->vlan_tpid = proto; in nf_flow_rule_vlan_match()
87 mask->vlan_tpid = 0xffff; in nf_flow_rule_vlan_match()
/Linux-v6.1/net/dsa/
Dtag_ocelot.c107 u16 vlan_tpid; in ocelot_rcv() local
170 vlan_tpid = tag_type ? ETH_P_8021AD : ETH_P_8021Q; in ocelot_rcv()
173 eth_hdr(skb)->h_proto == htons(vlan_tpid)) { in ocelot_rcv()
179 __vlan_hwaccel_put_tag(skb, htons(vlan_tpid), vlan_tci); in ocelot_rcv()
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c306 ext->outer_tpid |= key->vlan_tpid & mask->vlan_tpid; in nfp_flower_fill_vlan()
308 msk->outer_tpid |= mask->vlan_tpid; in nfp_flower_fill_vlan()
311 ext->inner_tpid |= key->vlan_tpid & mask->vlan_tpid; in nfp_flower_fill_vlan()
313 msk->inner_tpid |= mask->vlan_tpid; in nfp_flower_fill_vlan()
Dtunnel_conf.c339 ext->vlan_tpid = flow_pay->pre_tun_rule.vlan_tpid; in nfp_tun_mutual_link()
400 ext->vlan_tpid = cpu_to_be16(U16_MAX); in nfp_tun_cleanup_nn_entries()
435 ext->vlan_tpid = cpu_to_be16(U16_MAX); in nfp_tun_unlink_and_update_nn_entries()
504 ext->vlan_tpid = cpu_to_be16(U16_MAX); in nfp_tun_write_neigh()
Doffload.c861 tun->outer_vlan_tpid = vlan->vlan_tpid; in nfp_fl_push_vlan_after_tun()
1253 u16 vlan_tpid; in nfp_flower_validate_pre_tun_rule() local
1259 vlan_tpid = be16_to_cpu(vlan_tags->outer_tpid); in nfp_flower_validate_pre_tun_rule()
1263 flow->pre_tun_rule.vlan_tpid = cpu_to_be16(vlan_tpid); in nfp_flower_validate_pre_tun_rule()
1267 flow->pre_tun_rule.vlan_tpid = cpu_to_be16(0xffff); in nfp_flower_validate_pre_tun_rule()
Dmain.h125 __be16 vlan_tpid; member
431 __be16 vlan_tpid; member
Dcmsg.h191 __be16 vlan_tpid; member
Dconntrack.c497 if ((match.key->vlan_tpid & match.mask->vlan_tpid) ^ in nfp_ct_check_vlan_merge()
498 (a_in->vlan.proto & match.mask->vlan_tpid)) in nfp_ct_check_vlan_merge()
Daction.c124 push_vlan->vlan_tpid = act->vlan.proto; in nfp_fl_push_vlan()
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c157 static u16 ice_check_supported_vlan_tpid(u16 vlan_tpid) in ice_check_supported_vlan_tpid() argument
159 switch (vlan_tpid) { in ice_check_supported_vlan_tpid()
163 return vlan_tpid; in ice_check_supported_vlan_tpid()
348 u16 vlan_tpid = 0; in ice_tc_fill_rules() local
351 rule_info->vlan_type = vlan_tpid; in ice_tc_fill_rules()
393 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules()
395 ice_check_supported_vlan_tpid(vlan_tpid); in ice_tc_fill_rules()
1329 if (match.mask->vlan_tpid) in ice_parse_cls_flower()
1330 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid; in ice_parse_cls_flower()
Dice_tc_lib.h55 __be16 vlan_tpid; member
Dice_switch.c2462 u16 vlan_tpid = ETH_P_8021Q; in ice_fill_sw_rule() local
2535 vlan_tpid = f_info->l_data.vlan.tpid; in ice_fill_sw_rule()
2579 *off = cpu_to_be16(vlan_tpid); in ice_fill_sw_rule()
/Linux-v6.1/include/net/
Dflow_dissector.h61 __be16 vlan_tpid; member
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c343 rule_match_set(r_match->key, VLAN_TPID, match.key->vlan_tpid); in prestera_flower_parse()
344 rule_match_set(r_match->mask, VLAN_TPID, match.mask->vlan_tpid); in prestera_flower_parse()
/Linux-v6.1/include/uapi/linux/
Dopenvswitch.h741 __be16 vlan_tpid; /* 802.1Q or 802.1ad TPID. */ member
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch-flower.c61 acl_h->l2_tpid = be16_to_cpu(match.key->vlan_tpid); in dpaa2_switch_flower_parse_key()
66 acl_m->l2_tpid = be16_to_cpu(match.mask->vlan_tpid); in dpaa2_switch_flower_parse_key()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c576 if (ntohs(match.key->vlan_tpid) != ETH_P_8021Q) { in otx2_tc_prepare_flow()
578 ntohs(match.key->vlan_tpid)); in otx2_tc_prepare_flow()
/Linux-v6.1/drivers/net/ethernet/mediatek/
Dmtk_ppe_offload.c294 if (match.key->vlan_tpid != cpu_to_be16(ETH_P_8021Q)) in mtk_flow_offload_replace()
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
Dswitch-driver.rst138 * VLAN: vlan_id/vlan_prio/vlan_tpid/vlan_dei
/Linux-v6.1/net/openvswitch/
Dactions.c237 key->eth.vlan.tpid = vlan->vlan_tpid; in push_vlan()
239 return skb_vlan_push(skb, vlan->vlan_tpid, in push_vlan()
/Linux-v6.1/net/sched/
Dcls_flower.c1034 key_val->vlan_tpid = ethertype; in fl_set_key_vlan()
1035 key_mask->vlan_tpid = cpu_to_be16(~0); in fl_set_key_vlan()
3085 (mask->cvlan.vlan_tpid && in fl_dump_key()
3087 key->cvlan.vlan_tpid))) in fl_dump_key()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2629 match.key->vlan_tpid = vlan_dev_vlan_proto(filter_dev); in __parse_cls_flower()
2639 match.mask->vlan_tpid) { in __parse_cls_flower()
2640 if (match.key->vlan_tpid == htons(ETH_P_8021AD)) { in __parse_cls_flower()
2690 match.mask->vlan_tpid) { in __parse_cls_flower()
2698 if (match.key->vlan_tpid == htons(ETH_P_8021AD)) { in __parse_cls_flower()
/Linux-v6.1/net/ethtool/
Dioctl.c3268 match->key.vlan.vlan_tpid = ext_h_spec->vlan_etype; in ethtool_rx_flow_rule_create()
3269 match->mask.vlan.vlan_tpid = ext_m_spec->vlan_etype; in ethtool_rx_flow_rule_create()

12