diff options
author | Alan Brady <alan.brady@intel.com> | 2017-07-12 05:46:06 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-08-25 14:52:46 -0700 |
commit | 06b2decd924891b6c7570a91f91e11a5a8fed421 (patch) | |
tree | cb0f3ba52cf2163800b163bc2d49dfbf42d3410e /drivers/net/ethernet/intel/i40e/i40e_nvm.c | |
parent | i40e: use cpumask_copy instead of direct assignment (diff) | |
download | linux-dev-06b2decd924891b6c7570a91f91e11a5a8fed421.tar.xz linux-dev-06b2decd924891b6c7570a91f91e11a5a8fed421.zip |
i40e: prevent changing ITR if adaptive-rx/tx enabled
Currently the driver allows the user to change (or even disable)
interrupt moderation if adaptive-rx/tx is enabled when this should
not be the case.
Adaptive RX/TX will not respect the user's ITR settings so
allowing the user to change it is weird. This bug would also
allow the user to disable interrupt moderation with adaptive-rx/tx
enabled which doesn't make much sense either.
This patch makes it such that if adaptive-rx/tx is enabled, the user
cannot make any manual adjustments to interrupt moderation. It also
makes it so that if ITR is disabled but adaptive-rx/tx is then
enabled, ITR will be re-enabled.
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_nvm.c')
0 files changed, 0 insertions, 0 deletions