Home
last modified time | relevance | path

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

/Linux-v4.19/net/sched/
Dcls_flower.c205 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/
Dspectrum_flower.c230 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/
Denic_clsf.c165 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/
Dcxgb4_tc_flower.c106 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/
Dmatch.c137 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()
Doffload.c299 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/
Dflow_dissector.h38 __be16 n_proto; member
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Drx.c851 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/
Drx.c925 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/
Dflow_dissector.c1069 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/
Dnetvsc_drv.c254 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/
Dbnxt_tc.c215 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()
Dbnxt.c3836 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()
Dbnxt_ethtool.c654 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_main.c2449 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/
Di40e_virtchnl_pf.c3229 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()
Di40e.h287 u16 n_proto; /* Ethernet Protocol */ member
Di40e_main.c6888 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/
Den_tc.c1421 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/
Digb_main.c2639 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()