]> asedeno.scripts.mit.edu Git - linux.git/commit
i40e: prevent changing ITR if adaptive-rx/tx enabled
authorAlan Brady <alan.brady@intel.com>
Wed, 12 Jul 2017 09:46:06 +0000 (05:46 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 25 Aug 2017 21:52:46 +0000 (14:52 -0700)
commit06b2decd924891b6c7570a91f91e11a5a8fed421
treecb0f3ba52cf2163800b163bc2d49dfbf42d3410e
parent7e4d01e7d3f7d4f7b0a768a1028cb26ea06c8694
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>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c