]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Prevent changing static ITR values if adaptive moderation is on
authorNitesh B Venkatesh <nitesh.b.venkatesh@intel.com>
Fri, 4 Jun 2021 16:53:31 +0000 (09:53 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 19 Nov 2021 16:23:20 +0000 (08:23 -0800)
commit4f7343e0d061007fbfbd14cd32ec21ea8c58ff51
tree424f011b933617f0a9fb7c6bc78d13be212d1b3a
parentba5e87f6a92219e0754fad9b24c2a003aceec683
iavf: Prevent changing static ITR values if adaptive moderation is on

Resolve being able to change static values on VF when adaptive interrupt
moderation is enabled.

This problem is fixed by checking the interrupt settings is not
a combination of change of static value while adaptive interrupt
moderation is turned on.

Without this fix, the user would be able to change static values
on VF with adaptive moderation enabled.

Fixes: 2a4d2fed5b03 ("i40evf: support queue-specific settings for interrupt moderation")
Signed-off-by: Nitesh B Venkatesh <nitesh.b.venkatesh@intel.com>
Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_ethtool.c