/linux/tools/testing/selftests/bpf/prog_tests/ |
A 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), 356 .n_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A 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()
|
A 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()
|
A D | tc_tun.c | 837 .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 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/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 | 229 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 D | ice_tc_lib.h | 47 __be16 n_proto; /* Ethernet Protocol */ member
|
/linux/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()
|
A 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/net/sched/ |
A D | cls_flower.c | 1532 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 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/ |
A D | flow_dissector.c | 819 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 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/tools/testing/selftests/bpf/progs/ |
A D | bpf_flow.c | 146 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 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/drivers/net/ethernet/sfc/falcon/ |
A D | rx.c | 855 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 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/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/drivers/net/ethernet/sfc/ |
A D | rx_common.c | 983 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 D | flow_dissector.h | 43 __be16 n_proto; member
|
/linux/drivers/net/hyperv/ |
A 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/drivers/net/ethernet/mscc/ |
A D | ocelot_flower.c | 561 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 D | iavf_main.c | 2853 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 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()
|