Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c39 got.n_proto, expected.n_proto, \
128 .n_proto = __bpf_constant_htons(ETH_P_IP),
149 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
172 .n_proto = __bpf_constant_htons(ETH_P_IP),
196 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
220 .n_proto = __bpf_constant_htons(ETH_P_IP),
246 .n_proto = __bpf_constant_htons(ETH_P_IP),
270 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
296 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
370 .n_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dptp.h61 if (fk.basic.n_proto == htons(ETH_P_1588)) in mlx5e_use_ptpsq()
64 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_use_ptpsq()
65 fk.basic.n_proto != htons(ETH_P_IPV6)) in mlx5e_use_ptpsq()
A Dtc_tun.c838 .n_proto = htons(0xFFFF), in mlx5e_tc_tun_parse()
868 key_basic.n_proto = htons(ETH_P_IP); in mlx5e_tc_tun_parse()
893 key_basic.n_proto = htons(ETH_P_IPV6); in mlx5e_tc_tun_parse()
A Dtc_ct.c122 __be16 n_proto; member
243 tuple->n_proto = basic.key->n_proto; in mlx5_tc_ct_rule_to_tuple()
1389 tuple->n_proto = flow_keys.basic.n_proto; in mlx5_tc_ct_skb_to_tuple()
1392 switch (flow_keys.basic.n_proto) { in mlx5_tc_ct_skb_to_tuple()
/linux-6.3-rc2/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-6.3-rc2/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.c271 if (fltr->inner_headers.l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_tunnel_outer()
363 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
364 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
508 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules()
527 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules()
1387 n_proto_key = ntohs(match.key->n_proto); in ice_parse_cls_flower()
1388 n_proto_mask = ntohs(match.mask->n_proto); in ice_parse_cls_flower()
1399 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1400 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
1508 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
[all …]
A Dice_tc_lib.h79 __be16 n_proto; /* Ethernet Protocol */ member
/linux-6.3-rc2/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()
/linux-6.3-rc2/net/sched/
A Dcls_flower.c1076 key->basic.n_proto = htons(ETH_P_IP); in fl_set_key_pppoe()
1077 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe()
1089 key->basic.n_proto = 0; in fl_set_key_pppoe()
1090 mask->basic.n_proto = cpu_to_be16(0); in fl_set_key_pppoe()
1651 key->basic.n_proto = *ethertype; in is_vlan_key()
1652 mask->basic.n_proto = cpu_to_be16(~0); in is_vlan_key()
1698 &mask->basic.n_proto, in fl_set_key()
1700 sizeof(key->basic.n_proto)); in fl_set_key()
3084 sizeof(key->basic.n_proto))) in fl_dump_key()
3107 if (mask->basic.n_proto) { in fl_dump_key()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
A Dct_fs_smfs.c264 if (basic.mask->n_proto != htons(0xFFFF) || in mlx5_ct_fs_smfs_ct_validate_flow_rule()
265 (basic.key->n_proto != htons(ETH_P_IP) && basic.key->n_proto != htons(ETH_P_IPV6)) || in mlx5_ct_fs_smfs_ct_validate_flow_rule()
270 ntohs(basic.key->n_proto), ntohs(basic.mask->n_proto), in mlx5_ct_fs_smfs_ct_validate_flow_rule()
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dbpf_flow.c148 if (keys->n_proto == bpf_htons(ETH_P_IP)) { in _dissect()
161 return parse_eth_proto(skb, keys->n_proto); in _dissect()
410 if (keys->n_proto == bpf_htons(ETH_P_8021AD)) { in PROG()
433 keys->n_proto = vlan->h_vlan_encapsulated_proto; in PROG()
/linux-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_flower.c436 u16 n_proto) in mlxsw_sp_flower_parse_ip() argument
444 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) { in mlxsw_sp_flower_parse_ip()
512 n_proto_key = ntohs(match.key->n_proto); in mlxsw_sp_flower_parse()
513 n_proto_mask = ntohs(match.mask->n_proto); in mlxsw_sp_flower_parse()
/linux-6.3-rc2/net/core/
A Dflow_dissector.c845 key_basic->n_proto = flow_keys->n_proto; in __skb_flow_bpf_to_target()
901 flow_keys->n_proto = proto; in bpf_flow_dissect()
1035 __be16 n_proto = proto; in __skb_flow_dissect() local
1045 n_proto = skb->protocol; in __skb_flow_dissect()
1049 result = bpf_flow_dissect(prog, &ctx, n_proto, nhoff, in __skb_flow_dissect()
1566 key_basic->n_proto = proto; in __skb_flow_dissect()
1707 __be16 n_proto; member
1725 data->n_proto = flow->basic.n_proto; in make_flow_keys_digest()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Den_arfs.c651 tuple->etype = fk->basic.n_proto; in arfs_alloc_rule()
678 if (tuple->etype != fk->basic.n_proto) in arfs_cmp()
719 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_rx_flow_steer()
720 fk.basic.n_proto != htons(ETH_P_IPV6)) in mlx5e_rx_flow_steer()
726 arfs_t = arfs_get_table(arfs, fk.basic.ip_proto, fk.basic.n_proto); in mlx5e_rx_flow_steer()
/linux-6.3-rc2/drivers/net/hyperv/
A Dhyperv_net.h1080 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash()
1082 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash()
1088 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash()
1090 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash()
1099 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash()
1101 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash()
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_tc_flower.c70 if (match.mask->n_proto) { in lan966x_tc_flower_handler_basic_usage()
71 st->l3_proto = be16_to_cpu(match.key->n_proto); in lan966x_tc_flower_handler_basic_usage()
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_flower.c232 n_proto_key = match.key->n_proto; in prestera_flower_parse()
233 n_proto_mask = match.mask->n_proto; in prestera_flower_parse()
235 if (ntohs(match.key->n_proto) == ETH_P_ALL) { in prestera_flower_parse()
/linux-6.3-rc2/drivers/net/ethernet/sfc/falcon/
A Drx.c857 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) in ef4_filter_rfs()
869 spec.ether_type = fk.basic.n_proto; in ef4_filter_rfs()
872 if (fk.basic.n_proto == htons(ETH_P_IP)) { in ef4_filter_rfs()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Drx_common.c969 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_filter_rfs()
986 req->spec.ether_type = fk.basic.n_proto; in efx_filter_rfs()
989 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_filter_rfs()
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/
A Drx_common.c977 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_siena_filter_rfs()
994 req->spec.ether_type = fk.basic.n_proto; in efx_siena_filter_rfs()
997 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_siena_filter_rfs()
/linux-6.3-rc2/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-6.3-rc2/include/net/
A Dflow_dissector.h43 __be16 n_proto; member
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_tc.c758 if (match.mask->n_proto) { in tc_add_ethtype_flow()
759 u16 etype = ntohs(match.key->n_proto); in tc_add_ethtype_flow()
761 if (match.mask->n_proto != ETHER_TYPE_FULL_MASK) { in tc_add_ethtype_flow()

Completed in 59 milliseconds

123