android_kernel_sony_sdm845/include/linux/qed
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Lobakin ea6eb20cfe net: qed: fix left elements count calculation
[ Upstream commit 97dd1abd026ae4e6a82fa68645928404ad483409 ]

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 15:38:42 -04:00
..
common_hsi.h qed: Add support for RoCE hw init 2016-10-03 23:22:46 -04:00
eth_common.h qed: utilize FW 8.10.10.0 2016-08-19 17:57:06 -07:00
iscsi_common.h qed: utilize FW 8.10.10.0 2016-08-19 17:57:06 -07:00
qed_chain.h net: qed: fix left elements count calculation 2020-06-30 15:38:42 -04:00
qed_eth_if.h qed*: Add support for VFs over legacy PFs 2016-08-22 18:24:52 -07:00
qed_if.h qed*: Reduce the memory footprint for Rx path 2016-10-22 17:08:07 -04:00
qed_iov_if.h
qed_ll2_if.h qed: Add Light L2 support 2016-10-03 23:22:46 -04:00
qed_roce_if.h qed: Add RoCE ll2 & GSI support 2016-10-03 23:22:47 -04:00
qede_roce.h qed*: Fix Kconfig dependencies with INFINIBAND_QEDR 2016-10-14 11:07:22 -04:00
rdma_common.h qed: Add support for RoCE hw init 2016-10-03 23:22:46 -04:00
roce_common.h qed: Add common HSI for new protocols 2016-06-03 20:08:39 -04:00
storage_common.h qed: Add common HSI for new protocols 2016-06-03 20:08:39 -04:00
tcp_common.h qed: utilize FW 8.10.10.0 2016-08-19 17:57:06 -07:00