qed: Read queue state before releasing buffer
authorRam Amrani <Ram.Amrani@cavium.com>
Mon, 20 Feb 2017 20:43:31 +0000 (22:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:54 +0000 (17:11 -0500)
commitc5212b943d4b52a7d9e0d9f747e7ad59c50d31f1
tree5ad09aebcaf35918612123cda1e3485200965473
parent670dde55c6f182b8a159f0484be92b89d82107e1
qed: Read queue state before releasing buffer

Currently the state is read only after the buffers are relesed.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c