summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qed/qed_sp.h
diff options
context:
space:
mode:
authorTomer Tayar <Tomer.Tayar@qlogic.com>2015-12-07 14:25:56 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-07 22:14:03 +0300
commit4639d60d2bfb7f5007b5d93788fd93c19b63f000 (patch)
tree700ce3b8225ff3fb235750875b8739956814a1c7 /drivers/net/ethernet/qlogic/qed/qed_sp.h
parent4675390a9e7183bf45590e84a183e22e32c485a7 (diff)
downloadlinux-4639d60d2bfb7f5007b5d93788fd93c19b63f000.tar.xz
qed: Fix corner case for chain in-between pages
The amount of chain next pointer elements between the producer and the consumer indices depends on which pages they currently point to. The current calculation is based only on their difference, and it can lead to a number of free elements which is higher by 1 than the actual value. Signed-off-by: Tomer Tayar <Tomer.Tayar@qlogic.com> Signed-off-by: Manish Chopra <manish.chopra@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_sp.h')
0 files changed, 0 insertions, 0 deletions