/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 36 got.n_proto, expected.n_proto, \ 124 .n_proto = __bpf_constant_htons(ETH_P_IP), 144 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 166 .n_proto = __bpf_constant_htons(ETH_P_IP), 189 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 212 .n_proto = __bpf_constant_htons(ETH_P_IP), 237 .n_proto = __bpf_constant_htons(ETH_P_IP), 260 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 285 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 306 .n_proto = __bpf_constant_htons(ETH_P_IPV6), [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | ptp.h | 59 if (fk.basic.n_proto == htons(ETH_P_1588)) in mlx5e_use_ptpsq() 62 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_use_ptpsq() 63 fk.basic.n_proto != htons(ETH_P_IPV6)) in mlx5e_use_ptpsq()
|
D | tc_ct.c | 99 __be16 n_proto; member 220 tuple->n_proto = basic.key->n_proto; in mlx5_tc_ct_rule_to_tuple() 1197 tuple->n_proto = flow_keys.basic.n_proto; in mlx5_tc_ct_skb_to_tuple() 1200 switch (flow_keys.basic.n_proto) { in mlx5_tc_ct_skb_to_tuple()
|
D | tc_tun.c | 819 .n_proto = htons(0xFFFF), in mlx5e_tc_tun_parse() 849 key_basic.n_proto = htons(ETH_P_IP); in mlx5e_tc_tun_parse() 874 key_basic.n_proto = htons(ETH_P_IPV6); in mlx5e_tc_tun_parse()
|
/Linux-v5.15/Documentation/bpf/ |
D | prog_flow_dissector.rst | 28 * ``n_proto`` - L3 protocol type, parsed out of L2 header 32 bpf_flow_keys`` fields. Input arguments ``nhoff/thoff/n_proto`` should be 56 flow_keys->n_proto = ETHER_TYPE 73 flow_keys->n_proto = TPID 92 flow_keys->n_proto = ETHER_TYPE 131 * ``_dissect`` routine - entry point; it does input ``n_proto`` parsing and
|
/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_arfs.c | 319 if (fk->basic.n_proto == htons(ETH_P_IP)) { in ice_arfs_build_entry() 404 __be16 n_proto; in ice_rx_flow_steer() local 421 n_proto = fk.basic.n_proto; in ice_rx_flow_steer() 423 if ((n_proto == htons(ETH_P_IP) && !ip_is_fragment(ip_hdr(skb))) || in ice_rx_flow_steer() 424 n_proto == htons(ETH_P_IPV6)) in ice_rx_flow_steer() 434 if (!ice_arfs_is_perfect_flow_set(&pf->hw, n_proto, ip_proto)) in ice_rx_flow_steer()
|
/Linux-v5.15/net/netfilter/ |
D | nf_tables_offload.c | 58 .value = match->key.basic.n_proto, in nft_flow_rule_transfer_vlan() 59 .mask = match->mask.basic.n_proto, 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() 75 (match->key.basic.n_proto == htons(ETH_P_8021Q) || in nft_flow_rule_transfer_vlan() 76 match->key.basic.n_proto == htons(ETH_P_8021AD))) { 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()
|
D | nf_flow_table_offload.c | 145 key->basic.n_proto = htons(ETH_P_IP); in nf_flow_rule_match() 153 key->basic.n_proto = htons(ETH_P_IPV6); in nf_flow_rule_match() 164 mask->basic.n_proto = 0xffff; in nf_flow_rule_match()
|
/Linux-v5.15/net/sched/ |
D | cls_flower.c | 325 skb_key.basic.n_proto = skb_protocol(skb, false); in fl_classify() 1529 fl_set_key_val(tb, &key->basic.n_proto, in fl_set_key() 1531 &mask->basic.n_proto, in fl_set_key() 1533 sizeof(key->basic.n_proto)); in fl_set_key() 1535 key->basic.n_proto = ethertype; in fl_set_key() 1536 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key() 1540 key->basic.n_proto = ethertype; in fl_set_key() 1541 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key() 1545 if (key->basic.n_proto == htons(ETH_P_IP) || in fl_set_key() 1546 key->basic.n_proto == htons(ETH_P_IPV6)) { in fl_set_key() [all …]
|
/Linux-v5.15/drivers/net/ethernet/cisco/enic/ |
D | enic_clsf.c | 166 tpos->keys.basic.n_proto == k->basic.n_proto) in htbl_key_search() 182 if (!res || keys.basic.n_proto != htons(ETH_P_IP) || in enic_rx_flow_steer()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_flower.c | 391 u16 n_proto) in mlxsw_sp_flower_parse_ip() argument 399 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) { in mlxsw_sp_flower_parse_ip() 467 n_proto_key = ntohs(match.key->n_proto); in mlxsw_sp_flower_parse() 468 n_proto_mask = ntohs(match.mask->n_proto); in mlxsw_sp_flower_parse()
|
/Linux-v5.15/net/core/ |
D | flow_dissector.c | 818 key_basic->n_proto = flow_keys->n_proto; in __skb_flow_bpf_to_target() 874 flow_keys->n_proto = proto; in bpf_flow_dissect() 1001 __be16 n_proto = proto; in __skb_flow_dissect() local 1010 n_proto = skb->protocol; in __skb_flow_dissect() 1014 ret = bpf_flow_dissect(prog, &ctx, n_proto, nhoff, in __skb_flow_dissect() 1438 key_basic->n_proto = proto; in __skb_flow_dissect() 1580 __be16 n_proto; member 1598 data->n_proto = flow->basic.n_proto; in make_flow_keys_digest()
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | bpf_flow.c | 147 return parse_eth_proto(skb, keys->n_proto); in _dissect() 396 if (keys->n_proto == bpf_htons(ETH_P_8021AD)) { in PROG() 419 keys->n_proto = vlan->h_vlan_encapsulated_proto; in PROG()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_arfs.c | 635 tuple->etype = fk->basic.n_proto; in arfs_alloc_rule() 662 if (tuple->etype != fk->basic.n_proto) in arfs_cmp() 702 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_rx_flow_steer() 703 fk.basic.n_proto != htons(ETH_P_IPV6)) in mlx5e_rx_flow_steer() 709 arfs_t = arfs_get_table(arfs, fk.basic.ip_proto, fk.basic.n_proto); in mlx5e_rx_flow_steer()
|
/Linux-v5.15/drivers/net/ethernet/sfc/falcon/ |
D | rx.c | 847 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) in ef4_filter_rfs() 859 spec.ether_type = fk.basic.n_proto; in ef4_filter_rfs() 862 if (fk.basic.n_proto == htons(ETH_P_IP)) { in ef4_filter_rfs()
|
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/ |
D | prestera_flower.c | 132 n_proto_key = ntohs(match.key->n_proto); in prestera_flower_parse() 133 n_proto_mask = ntohs(match.mask->n_proto); in prestera_flower_parse()
|
/Linux-v5.15/include/net/ |
D | flow_dissector.h | 43 __be16 n_proto; member
|
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_flower.c | 184 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match() 185 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match() 333 ethtype_key = ntohs(match.key->n_proto); in cxgb4_validate_flow_match() 334 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_validate_flow_match()
|
/Linux-v5.15/drivers/net/ethernet/sfc/ |
D | rx_common.c | 975 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_filter_rfs() 992 req->spec.ether_type = fk.basic.n_proto; in efx_filter_rfs() 995 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_filter_rfs()
|
/Linux-v5.15/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 507 if (ntohs(match.key->n_proto) == ETH_P_IP) { in ocelot_flower_parse_key() 521 if (ntohs(match.key->n_proto) == ETH_P_IPV6) { in ocelot_flower_parse_key()
|
/Linux-v5.15/drivers/net/hyperv/ |
D | netvsc_drv.c | 263 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 265 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash() 271 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 273 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash() 282 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 284 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash()
|
/Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch-flower.c | 41 acl_h->l2_ether_type = be16_to_cpu(match.key->n_proto); in dpaa2_switch_flower_parse_key() 43 acl_m->l2_ether_type = be16_to_cpu(match.mask->n_proto); in dpaa2_switch_flower_parse_key()
|
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 161 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mpls() 162 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { in nfp_flower_compile_mpls()
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 2766 u16 n_proto = 0; in iavf_parse_cls_flower() local 2796 n_proto_key = ntohs(match.key->n_proto); in iavf_parse_cls_flower() 2797 n_proto_mask = ntohs(match.mask->n_proto); in iavf_parse_cls_flower() 2803 n_proto = n_proto_key & n_proto_mask; in iavf_parse_cls_flower() 2804 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) in iavf_parse_cls_flower() 2806 if (n_proto == ETH_P_IPV6) { in iavf_parse_cls_flower()
|
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 428 flow_spec->etype = match.key->n_proto; in otx2_tc_prepare_flow() 429 flow_mask->etype = match.mask->n_proto; in otx2_tc_prepare_flow()
|