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

Function rte_eth_rss_hf_refine

dpdk/lib/ethdev/rte_ethdev.h:664–674  ·  view source on GitHub ↗

* For input set change of hash filter, if SRC_ONLY and DST_ONLY of * the same level are used simultaneously, it is the same case as * none of them are added. * * @param rss_hf * RSS types with SRC/DST_ONLY. * @return * RSS types. */

Source from the content-addressed store, hash-verified

662 * RSS types.
663 */
664static inline uint64_t
665rte_eth_rss_hf_refine(uint64_t rss_hf)
666{
667 if ((rss_hf & RTE_ETH_RSS_L3_SRC_ONLY) && (rss_hf & RTE_ETH_RSS_L3_DST_ONLY))
668 rss_hf &= ~(RTE_ETH_RSS_L3_SRC_ONLY | RTE_ETH_RSS_L3_DST_ONLY);
669
670 if ((rss_hf & RTE_ETH_RSS_L4_SRC_ONLY) && (rss_hf & RTE_ETH_RSS_L4_DST_ONLY))
671 rss_hf &= ~(RTE_ETH_RSS_L4_SRC_ONLY | RTE_ETH_RSS_L4_DST_ONLY);
672
673 return rss_hf;
674}
675
676#define RTE_ETH_RSS_IPV6_PRE32 ( \
677 RTE_ETH_RSS_IPV6 | \

Callers 8

rte_eth_dev_configureFunction · 0.85
iavf_hash_parse_actionFunction · 0.85
flow_dv_hashfields_setFunction · 0.85
flow_hw_hashfields_setFunction · 0.85
ice_hash_parse_actionFunction · 0.85
hns3_flow_get_hw_pctypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected