| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 115 .n_proto = __bpf_constant_htons(ETH_P_IP), 136 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 159 .n_proto = __bpf_constant_htons(ETH_P_IP), 183 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 207 .n_proto = __bpf_constant_htons(ETH_P_IP), 233 .n_proto = __bpf_constant_htons(ETH_P_IP), 257 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 283 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 305 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 329 .n_proto = __bpf_constant_htons(ETH_P_IPV6), [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_arfs.c | 320 if (fk->basic.n_proto == htons(ETH_P_IP)) { in ice_arfs_build_entry() 396 __be16 n_proto, u8 ip_proto) in ice_arfs_cmp() argument 408 return n_proto == htons(ETH_P_IP) && in ice_arfs_cmp() 449 __be16 n_proto; in ice_rx_flow_steer() local 466 n_proto = fk.basic.n_proto; in ice_rx_flow_steer() 468 if ((n_proto == htons(ETH_P_IP) && !ip_is_fragment(ip_hdr(skb))) || in ice_rx_flow_steer() 469 n_proto == htons(ETH_P_IPV6)) in ice_rx_flow_steer() 479 if (!ice_arfs_is_perfect_flow_set(&pf->hw, n_proto, ip_proto)) in ice_rx_flow_steer() 496 if (!ice_arfs_cmp(fltr_info, &fk, n_proto, ip_proto)) in ice_rx_flow_steer()
|
| H A D | ice_tc_lib.c | 299 if (fltr->inner_headers.l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_tunnel_outer() 317 if (fltr->inner_headers.l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_tunnel_outer() 405 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules() 406 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules() 554 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules() 573 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules() 767 return fltr->outer_headers.l2_key.n_proto == htons(ETH_P_LLDP); in ice_is_fltr_lldp() 1711 n_proto_key = ntohs(match.key->n_proto); in ice_parse_cls_flower() 1712 n_proto_mask = ntohs(match.mask->n_proto); in ice_parse_cls_flower() 1737 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower() [all …]
|
| /linux/Documentation/bpf/ |
| H A 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/net/netfilter/ |
| H A 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() 76 (match->key.basic.n_proto == htons(ETH_P_8021Q) || in nft_flow_rule_transfer_vlan() 77 match->key.basic.n_proto == htons(ETH_P_8021AD))) { in nft_flow_rule_transfer_vlan() 78 match->key.basic.n_proto = match->key.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan() 79 match->mask.basic.n_proto = match->mask.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz9477_tc_flower.c | 45 if (match.key->n_proto) { in ksz9477_flower_parse_key_l2() 46 if (match.mask->n_proto != ETHER_TYPE_FULL_MASK) { in ksz9477_flower_parse_key_l2() 52 ethtype = be16_to_cpu(match.key->n_proto); in ksz9477_flower_parse_key_l2()
|
| /linux/net/sched/ |
| H A D | cls_flower.c | 336 /* skb_flow_dissect() does not set n_proto in case an unknown in fl_classify() 339 skb_key.basic.n_proto = skb_protocol(skb, false); in fl_classify() 1122 * because ETH_P_PPP_SES was stored in basic.n_proto in fl_set_key_pppoe() 1141 key->basic.n_proto = htons(ETH_P_IP); in fl_set_key_pppoe() 1142 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe() 1144 key->basic.n_proto = htons(ETH_P_IPV6); in fl_set_key_pppoe() 1145 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe() 1147 key->basic.n_proto = htons(ETH_P_MPLS_UC); in fl_set_key_pppoe() 1148 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe() 1150 key->basic.n_proto in fl_set_key_pppoe() [all...] |
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_flow.c | 148 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/drivers/net/ethernet/cisco/enic/ |
| H A 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/net/core/ |
| H A D | flow_dissector.c | 955 key_basic->n_proto = flow_keys->n_proto; in __skb_flow_bpf_to_target() 1012 flow_keys->n_proto = proto; in bpf_flow_dissect() 1147 __be16 n_proto = proto; in __skb_flow_dissect() local 1157 n_proto = skb->protocol; in __skb_flow_dissect() 1161 result = bpf_flow_dissect(prog, &ctx, n_proto, nhoff, in __skb_flow_dissect() 1688 key_basic->n_proto = proto; in __skb_flow_dissect() 1836 __be16 n_proto; in ___skb_get_hash() 1854 data->n_proto = flow->basic.n_proto; in make_flow_keys_digest() 1839 __be16 n_proto; global() member [all...] |
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_flower.c | 537 u16 n_proto) in mlxsw_sp_flower_parse_ip() argument 545 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) { in mlxsw_sp_flower_parse_ip() 618 n_proto_key = ntohs(match.key->n_proto); in mlxsw_sp_flower_parse() 619 n_proto_mask = ntohs(match.mask->n_proto); in mlxsw_sp_flower_parse()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_arfs.c | 675 tuple->etype = fk->basic.n_proto; in arfs_alloc_rule() 702 if (tuple->etype != fk->basic.n_proto) in arfs_cmp() 743 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_rx_flow_steer() 744 fk.basic.n_proto != htons(ETH_P_IPV6)) in mlx5e_rx_flow_steer() 750 arfs_t = arfs_get_table(arfs, fk.basic.ip_proto, fk.basic.n_proto); in mlx5e_rx_flow_steer()
|
| /linux/drivers/net/hyperv/ |
| H A D | hyperv_net.h | 1098 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 1100 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash() 1106 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 1108 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash() 1117 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 1119 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_ct.c | 118 __be16 n_proto; member 247 tuple->n_proto = basic.key->n_proto; in mlx5_tc_ct_rule_to_tuple() 1429 tuple->n_proto = flow_keys.basic.n_proto; in mlx5_tc_ct_skb_to_tuple() 1432 switch (flow_keys.basic.n_proto) { in mlx5_tc_ct_skb_to_tuple() 2513 if (basic.mask->n_proto != htons(0xFFFF) || in mlx5e_tc_ct_is_valid_flow_rule() 2514 (basic.key->n_proto != htons(ETH_P_IP) && basic.key->n_proto != htons(ETH_P_IPV6)) || in mlx5e_tc_ct_is_valid_flow_rule() 2519 ntohs(basic.key->n_proto), ntohs(basic.mask->n_proto), in mlx5e_tc_ct_is_valid_flow_rule()
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_flower.c | 242 n_proto_key = match.key->n_proto; in prestera_flower_parse() 243 n_proto_mask = match.mask->n_proto; in prestera_flower_parse() 245 if (ntohs(match.key->n_proto) == ETH_P_ALL) { in prestera_flower_parse()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | tc_conntrack.c | 141 if (!IS_ALL_ONES(fm.mask->n_proto)) { in efx_tc_ct_parse_match() 144 ntohs(fm.mask->n_proto)); in efx_tc_ct_parse_match() 147 conn->eth_proto = fm.key->n_proto; in efx_tc_ct_parse_match()
|
| H A D | rx_common.c | 926 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_filter_rfs() 943 req->spec.ether_type = fk.basic.n_proto; in efx_filter_rfs() 946 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_filter_rfs()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | rx.c | 856 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) in ef4_filter_rfs() 868 spec.ether_type = fk.basic.n_proto; in ef4_filter_rfs() 871 if (fk.basic.n_proto == htons(ETH_P_IP)) { in ef4_filter_rfs()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | rx_common.c | 917 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_siena_filter_rfs() 934 req->spec.ether_type = fk.basic.n_proto; in efx_siena_filter_rfs() 937 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_siena_filter_rfs()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_tc_flower.c | 173 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match() 174 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match() 323 ethtype_key = ntohs(match.key->n_proto); in cxgb4_validate_flow_match() 324 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_validate_flow_match()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_tc_flower.c | 100 if (match.mask->n_proto) { in lan966x_tc_flower_handler_basic_usage() 101 st->l3_proto = be16_to_cpu(match.key->n_proto); in lan966x_tc_flower_handler_basic_usage()
|
| /linux/include/net/ |
| H A D | flow_dissector.h | 59 __be16 n_proto; member
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_tc.c | 750 if (match.mask->n_proto) { in tc_add_ethtype_flow() 751 u16 etype = ntohs(match.key->n_proto); in tc_add_ethtype_flow() 753 if (match.mask->n_proto != ETHER_TYPE_FULL_MASK) { in tc_add_ethtype_flow()
|
| /linux/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | match.c | 163 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mpls() 164 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { in nfp_flower_compile_mpls()
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-switch-flower.c | 44 acl_h->l2_ether_type = be16_to_cpu(match.key->n_proto); in dpaa2_switch_flower_parse_key() 46 acl_m->l2_ether_type = be16_to_cpu(match.mask->n_proto); in dpaa2_switch_flower_parse_key()
|