OpenCloudOS-Kernel/include/linux/qed
Alexander Lobakin 97dd1abd02 net: qed: fix left elements count calculation
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>
2020-06-23 15:01:16 -07:00
..
common_hsi.h qed: FW 8.42.2.0 HSI changes 2020-01-27 14:35:32 +01:00
eth_common.h qed: FW 8.42.2.0 HSI changes 2020-01-27 14:35:32 +01:00
fcoe_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 440 2019-06-05 17:37:17 +02:00
iscsi_common.h qed: FW 8.42.2.0 iscsi/fcoe changes 2020-01-27 14:35:32 +01:00
iwarp_common.h
qed_chain.h net: qed: fix left elements count calculation 2020-06-23 15:01:16 -07:00
qed_eth_if.h qed/qede: Multi CoS support. 2018-08-09 14:05:30 -07:00
qed_fcoe_if.h
qed_if.h SCSI misc on 20200605 2020-06-05 15:11:50 -07:00
qed_iov_if.h
qed_iscsi_if.h
qed_ll2_if.h qed: FW 8.42.2.0 Additional ll2 type 2020-01-27 14:35:32 +01:00
qed_rdma_if.h RDMA 5.8 merge window pull request 2020-06-05 14:05:57 -07:00
qede_rdma.h qede: Error recovery process 2019-01-28 10:58:41 -08:00
rdma_common.h
roce_common.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
storage_common.h qed: FW 8.42.2.0 iscsi/fcoe changes 2020-01-27 14:35:32 +01:00
tcp_common.h