linux/include/linux/qed
Alexander Lobakin d10d0539c5 net: qed: fix left elements count calculation
[ Upstream commit 97dd1abd02 ]

qed_chain_get_element_left{,_u32} returned 0 when the difference
between producer and consumer page count was equal to the total
page count.
Fix this by conditional expanding of producer value (vs
unconditional). This allowed to eliminate normalizaton against
total page count, which was the cause of this bug.

Misc: replace open-coded constants with common defines.

Fixes: a91eb52abb ("qed: Revisit chain implementation")
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 23:17:12 -04:00
..
common_hsi.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
eth_common.h qed*: Utilize FW 8.33.11.0 2018-03-29 14:18:02 -04:00
fcoe_common.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
iscsi_common.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
iwarp_common.h qed*: Refactoring and rearranging FW API with no functional impact 2018-01-02 13:59:15 -05:00
qed_chain.h net: qed: fix left elements count calculation 2020-06-30 23:17:12 -04:00
qed_eth_if.h qed/qede: Multi CoS support. 2018-08-09 14:05:30 -07:00
qed_fcoe_if.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qed_if.h qed: Add qed APIs for PHY module query. 2018-07-19 23:35:37 -07:00
qed_iov_if.h qed*: Add support for ndo_set_vf_trust 2017-01-01 21:02:14 -05:00
qed_iscsi_if.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qed_ll2_if.h qed: Add support for Unified Fabric Port. 2018-05-07 23:46:10 -04:00
qed_rdma_if.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qede_rdma.h qede: Fix compilation without QED_RDMA 2017-06-21 11:33:47 -04:00
rdma_common.h qed*: Utilize FW 8.33.11.0 2018-03-29 14:18:02 -04:00
roce_common.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
storage_common.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
tcp_common.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00