* 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. */
| 3529 | * when both RSS and DCB/VMDQ are used. |
| 3530 | */ |
| 3531 | static bool |
| 3532 | ixgbe_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 | |
| 3552 | static void |
| 3553 | ixgbe_hw_rss_hash_set(struct ixgbe_hw *hw, struct rte_eth_rss_conf *rss_conf) |
no test coverage detected