MCPcopy Create free account
hub / github.com/F-Stack/f-stack / i40e_config_hena

Function i40e_config_hena

dpdk/drivers/net/i40e/i40e_ethdev.c:7580–7595  ·  view source on GitHub ↗

Configure hash enable flags for RSS */

Source from the content-addressed store, hash-verified

7578
7579/* Configure hash enable flags for RSS */
7580uint64_t
7581i40e_config_hena(const struct i40e_adapter *adapter, uint64_t flags)
7582{
7583 uint64_t hena = 0;
7584 int i;
7585
7586 if (!flags)
7587 return hena;
7588
7589 for (i = RTE_ETH_FLOW_UNKNOWN + 1; i < I40E_FLOW_TYPE_MAX; i++) {
7590 if (flags & (1ULL << i))
7591 hena |= adapter->pctypes_tbl[i];
7592 }
7593
7594 return hena;
7595}
7596
7597/* Parse the hash enable flags */
7598uint64_t

Callers 2

i40e_hw_rss_hash_setFunction · 0.85
i40e_pf_config_rssFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected