net: mana: Add handling of CQE_RX_TRUNCATED
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 4 Feb 2022 22:45:44 +0000 (14:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 13:18:40 +0000 (15:18 +0200)
commit04dcef44f6f4dda2f097bbd32e4f4c59951dae56
tree162251f1648c1a031889b0c9232977f6da046693
parent7fd1d002852f93f5c03b3188f585245c50b52aea
net: mana: Add handling of CQE_RX_TRUNCATED

commit e4b7621982d29f26ff4d39af389e5e675a4ffed4 upstream.

The proper way to drop this kind of CQE is advancing rxq tail
without indicating the packet to the upper network layer.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/microsoft/mana/mana_en.c