* 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. */
| 662 | * RSS types. |
| 663 | */ |
| 664 | static inline uint64_t |
| 665 | rte_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 | \ |
no outgoing calls
no test coverage detected