/Linux-v4.19/net/sched/ |
D | cls_flower.c | 205 skb_key.basic.n_proto = skb->protocol; in fl_classify() 800 fl_set_key_val(tb, &key->basic.n_proto, in fl_set_key() 802 &mask->basic.n_proto, in fl_set_key() 804 sizeof(key->basic.n_proto)); in fl_set_key() 806 key->basic.n_proto = ethertype; in fl_set_key() 807 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key() 811 key->basic.n_proto = ethertype; in fl_set_key() 812 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key() 816 if (key->basic.n_proto == htons(ETH_P_IP) || in fl_set_key() 817 key->basic.n_proto == htons(ETH_P_IPV6)) { in fl_set_key() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_flower.c | 230 u16 n_proto) in mlxsw_sp_flower_parse_ip() argument 237 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) { in mlxsw_sp_flower_parse_ip() 306 n_proto_key = ntohs(key->n_proto); in mlxsw_sp_flower_parse() 307 n_proto_mask = ntohs(mask->n_proto); in mlxsw_sp_flower_parse()
|
/Linux-v4.19/drivers/net/ethernet/cisco/enic/ |
D | enic_clsf.c | 165 tpos->keys.basic.n_proto == k->basic.n_proto) in htbl_key_search() 181 if (!res || keys.basic.n_proto != htons(ETH_P_IP) || in enic_rx_flow_steer()
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_flower.c | 106 u16 ethtype_key = ntohs(key->n_proto); in cxgb4_process_flow_match() 107 u16 ethtype_mask = ntohs(mask->n_proto); in cxgb4_process_flow_match() 284 ethtype_key = ntohs(key->n_proto); in cxgb4_validate_flow_match() 285 ethtype_mask = ntohs(mask->n_proto); in cxgb4_validate_flow_match()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 137 if (key_basic->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mac() 138 key_basic->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) in nfp_flower_compile_mac()
|
D | offload.c | 299 if (mask_basic && mask_basic->n_proto) { in nfp_flower_calculate_key_layers() 301 switch (key_basic->n_proto) { in nfp_flower_calculate_key_layers()
|
/Linux-v4.19/include/net/ |
D | flow_dissector.h | 38 __be16 n_proto; member
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | rx.c | 851 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) in ef4_filter_rfs() 863 spec.ether_type = fk.basic.n_proto; in ef4_filter_rfs() 866 if (fk.basic.n_proto == htons(ETH_P_IP)) { in ef4_filter_rfs()
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | rx.c | 925 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_filter_rfs() 942 req->spec.ether_type = fk.basic.n_proto; in efx_filter_rfs() 945 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_filter_rfs()
|
/Linux-v4.19/net/core/ |
D | flow_dissector.c | 1069 key_basic->n_proto = proto; in __skb_flow_dissect() 1215 __be16 n_proto; member 1233 data->n_proto = flow->basic.n_proto; in make_flow_keys_digest()
|
/Linux-v4.19/drivers/net/hyperv/ |
D | netvsc_drv.c | 254 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 256 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash() 262 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 264 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash() 273 if (flow.basic.n_proto == htons(ETH_P_IP)) in netvsc_get_hash() 275 else if (flow.basic.n_proto == htons(ETH_P_IPV6)) in netvsc_get_hash()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 215 flow->l2_key.ether_type = key->n_proto; in bnxt_tc_parse_flow() 216 flow->l2_mask.ether_type = mask->n_proto; in bnxt_tc_parse_flow() 218 if (key->n_proto == htons(ETH_P_IP) || in bnxt_tc_parse_flow() 219 key->n_proto == htons(ETH_P_IPV6)) { in bnxt_tc_parse_flow()
|
D | bnxt.c | 3836 if (keys->basic.n_proto == htons(ETH_P_IPV6)) { in bnxt_hwrm_cfa_ntuple_filter_alloc() 8164 keys1->basic.n_proto == keys2->basic.n_proto && in bnxt_fltr_match() 8209 if ((fkeys->basic.n_proto != htons(ETH_P_IP) && in bnxt_rx_flow_steer() 8210 fkeys->basic.n_proto != htons(ETH_P_IPV6)) || in bnxt_rx_flow_steer() 8216 if (fkeys->basic.n_proto == htons(ETH_P_IPV6) && in bnxt_rx_flow_steer()
|
D | bnxt_ethtool.c | 654 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_grxclsrule()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_main.c | 2449 u16 n_proto = 0; in i40evf_parse_cls_flower() local 2487 n_proto_key = ntohs(key->n_proto); in i40evf_parse_cls_flower() 2488 n_proto_mask = ntohs(mask->n_proto); in i40evf_parse_cls_flower() 2494 n_proto = n_proto_key & n_proto_mask; in i40evf_parse_cls_flower() 2495 if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) in i40evf_parse_cls_flower() 2497 if (n_proto == ETH_P_IPV6) { in i40evf_parse_cls_flower()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 3229 cfilter.n_proto = ETH_P_IP; in i40e_vc_del_cloud_filter() 3238 cfilter.n_proto = ETH_P_IPV6; in i40e_vc_del_cloud_filter() 3283 if (cfilter.n_proto == ETH_P_IP && mask.dst_ip[0]) in i40e_vc_del_cloud_filter() 3288 if (cfilter.n_proto == ETH_P_IPV6 && mask.dst_ip[3]) in i40e_vc_del_cloud_filter() 3363 cfilter->n_proto = ETH_P_IP; in i40e_vc_add_cloud_filter() 3372 cfilter->n_proto = ETH_P_IPV6; in i40e_vc_add_cloud_filter()
|
D | i40e.h | 287 u16 n_proto; /* Ethernet Protocol */ member
|
D | i40e_main.c | 6888 if (filter->n_proto != ETH_P_IP && filter->n_proto != ETH_P_IPV6) in i40e_set_cld_element() 6891 if (filter->n_proto == ETH_P_IPV6) { in i40e_set_cld_element() 6955 if (filter->n_proto == ETH_P_IPV6) in i40e_add_del_cloud_filter() 7042 if (filter->n_proto == ETH_P_IPV6) in i40e_add_del_cloud_filter_big_buf() 7144 n_proto_key = ntohs(key->n_proto); in i40e_parse_cls_flower() 7145 n_proto_mask = ntohs(mask->n_proto); in i40e_parse_cls_flower() 7151 filter->n_proto = n_proto_key & n_proto_mask; in i40e_parse_cls_flower()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 1421 ntohs(mask->n_proto)); in __parse_cls_flower() 1423 ntohs(key->n_proto)); in __parse_cls_flower() 1425 if (mask->n_proto) in __parse_cls_flower()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 2639 if (mask->n_proto) { in igb_parse_cls_flower() 2640 if (mask->n_proto != ETHER_TYPE_FULL_MASK) { in igb_parse_cls_flower() 2646 input->filter.etype = key->n_proto; in igb_parse_cls_flower()
|