/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | flow_dissector.c | 39 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 D | ptp.h | 61 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 D | tc_tun.c | 838 .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 D | tc_ct.c | 122 __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 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-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A 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()
|
A D | ice_tc_lib.c | 271 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 D | ice_tc_lib.h | 79 __be16 n_proto; /* Ethernet Protocol */ member
|
/linux-6.3-rc2/net/netfilter/ |
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() 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 D | cls_flower.c | 1076 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 D | ct_fs_smfs.c | 264 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 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-6.3-rc2/drivers/net/ethernet/cisco/enic/ |
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-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_flower.c | 436 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 D | flow_dissector.c | 845 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 D | en_arfs.c | 651 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 D | hyperv_net.h | 1080 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 D | lan966x_tc_flower.c | 70 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 D | prestera_flower.c | 232 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 D | rx.c | 857 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 D | rx_common.c | 969 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 D | rx_common.c | 977 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 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-6.3-rc2/include/net/ |
A D | flow_dissector.h | 43 __be16 n_proto; member
|
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_tc.c | 758 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()
|