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

Function ixgbe_rss_enabled

dpdk/drivers/net/ixgbe/ixgbe_rxtx.c:3531–3550  ·  view source on GitHub ↗

* This function checks whether the rss is enabled or not by comparing the mrqe * field with some RSS related enums and also considers the configurations for * DCB + RSS and Virtualization + RSS. It is necessary for getting the correct * rss hash configurations from the RSS Field Enable field of MRQC register * when both RSS and DCB/VMDQ are used. */

Source from the content-addressed store, hash-verified

3529 * when both RSS and DCB/VMDQ are used.
3530 */
3531static bool
3532ixgbe_rss_enabled(struct ixgbe_hw *hw)
3533{
3534 uint32_t mrqc;
3535 uint32_t mrqc_reg;
3536 uint32_t mrqe_val;
3537
3538 mrqc_reg = ixgbe_mrqc_reg_get(hw->mac.type);
3539 mrqc = IXGBE_READ_REG(hw, mrqc_reg);
3540 mrqe_val = mrqc & IXGBE_MRQC_MRQE_MASK;
3541
3542 if (mrqe_val == IXGBE_MRQC_RSSEN ||
3543 mrqe_val == IXGBE_MRQC_RTRSS8TCEN ||
3544 mrqe_val == IXGBE_MRQC_RTRSS4TCEN ||
3545 mrqe_val == IXGBE_MRQC_VMDQRSS64EN ||
3546 mrqe_val == IXGBE_MRQC_VMDQRSS32EN)
3547 return true;
3548
3549 return false;
3550}
3551
3552static void
3553ixgbe_hw_rss_hash_set(struct ixgbe_hw *hw, struct rte_eth_rss_conf *rss_conf)

Callers 2

Calls 1

ixgbe_mrqc_reg_getFunction · 0.85

Tested by

no test coverage detected