diff options
author | Michal Wilczynski <michal.wilczynski@intel.com> | 2022-05-08 19:33:48 -0400 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2022-05-17 10:37:09 -0700 |
commit | bf13502ed5f941b0777b3fd1e24dac5d93f3886c (patch) | |
tree | 1f468adf23dbff53479232a6899686bb1382a528 /net/mptcp | |
parent | 31b6298fd8e29effe9ed6b77351ac5969be56ce0 (diff) | |
download | linux-bf13502ed5f941b0777b3fd1e24dac5d93f3886c.tar.bz2 |
ice: Fix interrupt moderation settings getting cleared
Adaptive-rx and Adaptive-tx are interrupt moderation settings
that can be enabled/disabled using ethtool:
ethtool -C ethX adaptive-rx on/off adaptive-tx on/off
Unfortunately those settings are getting cleared after
changing number of queues, or in ethtool world 'channels':
ethtool -L ethX rx 1 tx 1
Clearing was happening due to introduction of bit fields
in ice_ring_container struct. This way only itr_setting
bits were rebuilt during ice_vsi_rebuild_set_coalesce().
Introduce an anonymous struct of bitfields and create a
union to refer to them as a single variable.
This way variable can be easily saved and restored.
Fixes: 61dc79ced7aa ("ice: Restore interrupt throttle settings after VSI rebuild")
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'net/mptcp')
0 files changed, 0 insertions, 0 deletions