net: ena: Account for the number of processed bytes in XDP
authorDavid Arinzon <darinzon@amazon.com>
Thu, 29 Dec 2022 07:30:07 +0000 (07:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:02:17 +0000 (12:02 +0100)
commit7d82fbedaecb8730e6dbb763b23151fea0781992
tree05fc57a4f8a8b3ba8c00118039e730df30968038
parentc7304c752a20411c95e57540dc1f48fa7a420416
net: ena: Account for the number of processed bytes in XDP

[ Upstream commit c7f5e34d906320fdc996afa616676161c029cc02 ]

The size of packets that were forwarded or dropped by XDP wasn't added
to the total processed bytes statistic.

Fixes: 548c4940b9f1 ("net: ena: Implement XDP_TX action")
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amazon/ena/ena_netdev.c