]> 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)
commitb927ac5800d428d2577b8b6eeeebb60491217ea1
tree424f011b933617f0a9fb7c6bc78d13be212d1b3a
parenta3e27865c5455a0d986909c77cb327195e978a2d
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: 8c2a4b177d7b ("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