Home
last modified time | relevance | path

Searched refs:used_keys (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c224 mlx5_tc_ct_valid_used_dissector_keys(const u32 used_keys) in mlx5_tc_ct_valid_used_dissector_keys() argument
235 return (used_keys == ipv4_tcp || used_keys == ipv4_udp || used_keys == ipv6_tcp || in mlx5_tc_ct_valid_used_dissector_keys()
236 used_keys == ipv6_udp || used_keys == ipv4_gre || used_keys == ipv6_gre); in mlx5_tc_ct_valid_used_dissector_keys()
249 if (!mlx5_tc_ct_valid_used_dissector_keys(flow_rule->match.dissector->used_keys)) { in mlx5_ct_fs_smfs_ct_validate_flow_rule()
251 flow_rule->match.dissector->used_keys); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
/Linux-v6.1/net/netfilter/
Dnf_tables_offload.c38 if (match->dissector.used_keys & BIT(FLOW_DISSECTOR_KEY_CONTROL)) in nft_flow_rule_set_addr_type()
43 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_CONTROL); in nft_flow_rule_set_addr_type()
62 if (match->dissector.used_keys & BIT(FLOW_DISSECTOR_KEY_VLAN) && in nft_flow_rule_transfer_vlan()
73 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_CVLAN); in nft_flow_rule_transfer_vlan()
74 } else if (match->dissector.used_keys & BIT(FLOW_DISSECTOR_KEY_BASIC) && in nft_flow_rule_transfer_vlan()
83 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_VLAN); in nft_flow_rule_transfer_vlan()
Dnf_flow_table_offload.c77 match->dissector.used_keys |= enc_keys; in nf_flow_rule_lwt_match()
166 match->dissector.used_keys |= BIT(key->control.addr_type); in nf_flow_rule_match()
173 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_TCP); in nf_flow_rule_match()
185 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_META) | in nf_flow_rule_match()
197 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_PORTS); in nf_flow_rule_match()
Dnft_cmp.c164 flow->match.dissector.used_keys |= BIT(reg->key); in __nft_cmp_offload()
/Linux-v6.1/include/net/
Dflow_dissector.h348 unsigned int used_keys; /* each bit repesents presence of one key id */ member
408 return flow_dissector->used_keys & (1 << key_id); in dissector_uses_key()
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/flower/
Doffload.c253 if (dissector->used_keys & ~NFP_FLOWER_WHITELIST_DISSECTOR) { in nfp_flower_calculate_key_layers()
259 if (dissector->used_keys & NFP_FLOWER_WHITELIST_TUN_DISSECTOR && in nfp_flower_calculate_key_layers()
260 (dissector->used_keys & NFP_FLOWER_WHITELIST_TUN_DISSECTOR_V6_R) in nfp_flower_calculate_key_layers()
262 (dissector->used_keys & NFP_FLOWER_WHITELIST_TUN_DISSECTOR_R) in nfp_flower_calculate_key_layers()
1306 if (dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_CT)) { in offload_pre_check()
Dconntrack.c98 if (dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_CT)) { in is_post_ct_flow()
228 unsigned int ovlp_keys = entry1->rule->match.dissector->used_keys & in nfp_ct_merge_check()
229 entry2->rule->match.dissector->used_keys; in nfp_ct_merge_check()
566 if (ct_met && (dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_CT))) { in nfp_ct_check_meta()
/Linux-v6.1/net/ethtool/
Dioctl.c3159 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3174 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3182 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3211 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3226 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3234 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3259 match->dissector.used_keys |= BIT(FLOW_DISSECTOR_KEY_BASIC); in ethtool_rx_flow_rule_create()
3291 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3306 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
/Linux-v6.1/drivers/net/ethernet/sfc/
Dtc.c146 if (dissector->used_keys & in efx_tc_flower_parse_match()
149 efx_tc_err(efx, "Unsupported flower keys %#x\n", dissector->used_keys); in efx_tc_flower_parse_match()
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch-flower.c19 if (dissector->used_keys & in dpaa2_switch_flower_parse_key()
541 if (dissector->used_keys & in dpaa2_switch_flower_parse_mirror_key()
/Linux-v6.1/drivers/net/ethernet/mscc/
Docelot_flower.c583 if (dissector->used_keys & in ocelot_flower_parse_key()
621 if ((dissector->used_keys & in ocelot_flower_parse_key()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c315 if (dissector->used_keys & in cxgb4_validate_flow_match()
325 dissector->used_keys); in cxgb4_validate_flow_match()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c485 if ((dissector->used_keys & in otx2_tc_prepare_flow()
495 dissector->used_keys); in otx2_tc_prepare_flow()
/Linux-v6.1/drivers/net/dsa/sja1105/
Dsja1105_flower.c207 if (dissector->used_keys & in sja1105_flower_parse_key()
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c1358 dissector->used_keys |= (1 << FLOW_DISSECTOR_KEY_IPV4_ADDRS); in __stmmac_test_l3filt()
1484 dissector->used_keys |= (1 << FLOW_DISSECTOR_KEY_BASIC); in __stmmac_test_l4filt()
1485 dissector->used_keys |= (1 << FLOW_DISSECTOR_KEY_PORTS); in __stmmac_test_l4filt()
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c198 if (dissector->used_keys & in prestera_flower_parse()
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c376 if ((dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_CONTROL)) == 0 || in bnxt_tc_parse_flow()
377 (dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_BASIC)) == 0) { in bnxt_tc_parse_flow()
379 dissector->used_keys); in bnxt_tc_parse_flow()
/Linux-v6.1/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c600 if (dissector->used_keys & in am65_cpsw_qos_clsflower_add_policer()
Dcpsw_priv.c1397 if (dissector->used_keys & in cpsw_qos_clsflower_add_policer()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c479 if (dissector->used_keys & in mlxsw_sp_flower_parse()
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c1199 if (dissector->used_keys & in ice_parse_cls_flower()
1238 } else if (dissector->used_keys & in ice_parse_cls_flower()
/Linux-v6.1/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1829 if (dissector->used_keys & in qede_parse_flow_attr()
1836 dissector->used_keys); in qede_parse_flow_attr()
/Linux-v6.1/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c1356 fwd = enetc_check_flow_actions(actions, dissector->used_keys); in enetc_config_clsflower()
/Linux-v6.1/net/core/
Dflow_dissector.c42 flow_dissector->used_keys |= (1 << key_id); in dissector_set_key()
/Linux-v6.1/drivers/net/ethernet/intel/iavf/
Diavf_main.c3716 if (dissector->used_keys & in iavf_parse_cls_flower()
3726 dissector->used_keys); in iavf_parse_cls_flower()

12