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)
commite792779e6b639c182df91b46ac1e5803460b0b15
tree424f011b933617f0a9fb7c6bc78d13be212d1b3a
parent0f296e782f21dc1c55475a3c107ac68ab09cc1cf
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: 65e87c0398f5 ("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