diff options
author | Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> | 2015-04-13 11:15:10 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-05-07 14:08:32 +0200 |
commit | c0a06ee185f2b785c7bd44c4fb6fcae80f7d1a54 (patch) | |
tree | d9c431f4c52d1852d29e2f1d638776fd821844d1 /ipc | |
parent | tcp_westwood: fix tcp_westwood_info() (diff) | |
download | linux-c0a06ee185f2b785c7bd44c4fb6fcae80f7d1a54.tar.xz linux-c0a06ee185f2b785c7bd44c4fb6fcae80f7d1a54.zip |
igb: Fix oops on changing number of rings
When changing the number of rings by ethtool -L, q_vectors are reused,
which causes oops because of uninitialized pointers.
- When an rx is reused as a tx, q_vector->rx.ring is not set to NULL, which
misleads igb_poll() to determine that it has an rx ring although it
actually points to the tx ring.
- When a tx is reused as an rx, q_vector->rx.ring->skb
(q_vector->ring[0].skb) has a value that was used as tx_stats before.
Fix these problems by zeroing it out on reuseing it.
Fixes: 02ef6e1d0b00 ("igb: Fix queue allocation method to accommodate changing during runtime")
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions