aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/clocksource
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@marvell.com>2020-06-23 16:51:29 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-23 15:01:16 -0700
commit97dd1abd026ae4e6a82fa68645928404ad483409 (patch)
treeec3ae7b777523d72de6c13a556020ef7cd1da008 /include/clocksource
parentnet: ethtool: add missing string for NETIF_F_GSO_TUNNEL_REMCSUM (diff)
downloadwireguard-linux-97dd1abd026ae4e6a82fa68645928404ad483409.tar.xz
wireguard-linux-97dd1abd026ae4e6a82fa68645928404ad483409.zip
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: 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>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions