summaryrefslogtreecommitdiff
path: root/include/uapi/linux/byteorder
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@marvell.com>2020-06-23 16:51:29 +0300
committerSasha Levin <sashal@kernel.org>2020-06-30 15:38:42 -0400
commitea6eb20cfeb4d94dea14c740812cca64bc0b89d4 (patch)
treed4470072b4005670f01d8e38c71d479d462ae4fd /include/uapi/linux/byteorder
parent79eb4f02c23a090b8c06002d33392c2191fb6110 (diff)
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: a91eb52abb50 ("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>
Diffstat (limited to 'include/uapi/linux/byteorder')
0 files changed, 0 insertions, 0 deletions