Home
last modified time | relevance | path

Searched refs:n_proto (Results 1 – 25 of 45) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c36 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),
356 .n_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dptp.h59 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()
A Dtc_ct.c99 __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()
A Dtc_tun.c837 .n_proto = htons(0xFFFF), in mlx5e_tc_tun_parse()
867 key_basic.n_proto = htons(ETH_P_IP); in mlx5e_tc_tun_parse()
892 key_basic.n_proto = htons(ETH_P_IPV6); in mlx5e_tc_tun_parse()
/linux/Documentation/bpf/
A Dprog_flow_dissector.rst28 * ``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/drivers/net/ethernet/intel/ice/
A Dice_arfs.c319 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()
A Dice_tc_lib.c229 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
230 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
880 n_proto_key = ntohs(match.key->n_proto); in ice_parse_cls_flower()
881 n_proto_mask = ntohs(match.mask->n_proto); in ice_parse_cls_flower()
890 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
891 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
A Dice_tc_lib.h47 __be16 n_proto; /* Ethernet Protocol */ member
/linux/net/netfilter/
A Dnf_tables_offload.c58 .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()
A Dnf_flow_table_offload.c145 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/net/sched/
A Dcls_flower.c1532 fl_set_key_val(tb, &key->basic.n_proto, in fl_set_key()
1534 &mask->basic.n_proto, in fl_set_key()
1536 sizeof(key->basic.n_proto)); in fl_set_key()
1538 key->basic.n_proto = ethertype; in fl_set_key()
1539 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key()
1543 key->basic.n_proto = ethertype; in fl_set_key()
1544 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key()
2867 sizeof(key->basic.n_proto))) in fl_dump_key()
2885 if (mask->basic.n_proto) { in fl_dump_key()
2888 key->basic.n_proto)) in fl_dump_key()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
A Denic_clsf.c166 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/net/core/
A Dflow_dissector.c819 key_basic->n_proto = flow_keys->n_proto; in __skb_flow_bpf_to_target()
875 flow_keys->n_proto = proto; in bpf_flow_dissect()
1002 __be16 n_proto = proto; in __skb_flow_dissect() local
1011 n_proto = skb->protocol; in __skb_flow_dissect()
1015 ret = bpf_flow_dissect(prog, &ctx, n_proto, nhoff, in __skb_flow_dissect()
1453 key_basic->n_proto = proto; in __skb_flow_dissect()
1595 __be16 n_proto; member
1613 data->n_proto = flow->basic.n_proto; in make_flow_keys_digest()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_flower.c391 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/tools/testing/selftests/bpf/progs/
A Dbpf_flow.c146 return parse_eth_proto(skb, keys->n_proto); in _dissect()
395 if (keys->n_proto == bpf_htons(ETH_P_8021AD)) { in PROG()
418 keys->n_proto = vlan->h_vlan_encapsulated_proto; in PROG()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_arfs.c635 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/drivers/net/ethernet/sfc/falcon/
A Drx.c855 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) in ef4_filter_rfs()
867 spec.ether_type = fk.basic.n_proto; in ef4_filter_rfs()
870 if (fk.basic.n_proto == htons(ETH_P_IP)) { in ef4_filter_rfs()
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_flower.c132 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/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_flower.c184 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/drivers/net/ethernet/sfc/
A Drx_common.c983 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_filter_rfs()
1000 req->spec.ether_type = fk.basic.n_proto; in efx_filter_rfs()
1003 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_filter_rfs()
/linux/include/net/
A Dflow_dissector.h43 __be16 n_proto; member
/linux/drivers/net/hyperv/
A Dnetvsc_drv.c263 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/drivers/net/ethernet/mscc/
A Docelot_flower.c561 if (ntohs(match.key->n_proto) == ETH_P_IP) { in ocelot_flower_parse_key()
575 if (ntohs(match.key->n_proto) == ETH_P_IPV6) { in ocelot_flower_parse_key()
/linux/drivers/net/ethernet/intel/iavf/
A Diavf_main.c2853 u16 n_proto = 0; in iavf_parse_cls_flower() local
2883 n_proto_key = ntohs(match.key->n_proto); in iavf_parse_cls_flower()
2884 n_proto_mask = ntohs(match.mask->n_proto); in iavf_parse_cls_flower()
2890 n_proto = n_proto_key & n_proto_mask; in iavf_parse_cls_flower()
2891 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) in iavf_parse_cls_flower()
2893 if (n_proto == ETH_P_IPV6) { in iavf_parse_cls_flower()
/linux/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch-flower.c41 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()

Completed in 73 milliseconds

12