qed: Fix possibility of list corruption during rmmod flows
authorMichal Kalderon <[email protected]>
Wed, 16 May 2018 11:44:39 +0000 (14:44 +0300)
committerDavid S. Miller <[email protected]>
Wed, 16 May 2018 18:52:23 +0000 (14:52 -0400)
commitffd2c0d12752a69e480366031ec7a7d723dd2510
treee2562feb42930abcd617a33f1c0963575e8520fb
parentf9bcd60274a565751abef622f9018badd01a17c8
qed: Fix possibility of list corruption during rmmod flows

The ll2 flows of flushing the txq/rxq need to be synchronized with the
regular fp processing. Caused list corruption during load/unload stress
tests.

Fixes: 0a7fb11c23c0f ("qed: Add Light L2 support")
Signed-off-by: Ariel Elior <[email protected]>
Signed-off-by: Michal Kalderon <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/qlogic/qed/qed_ll2.c