[Intel-wired-lan] [PATCH] i40e: report correct statistics when XDP is enabled

Bowers, AndrewX andrewx.bowers at intel.com
Tue Aug 28 16:50:54 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Björn Töpel
> Sent: Friday, August 24, 2018 4:22 AM
> To: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Cc: brouer at redhat.com; Topel, Bjorn <bjorn.topel at intel.com>;
> magnus.karlsson at gmail.com; Karlsson, Magnus
> <magnus.karlsson at intel.com>
> Subject: [Intel-wired-lan] [PATCH] i40e: report correct statistics when XDP is
> enabled
> 
> When XDP is enabled, the driver will report incorrect statistics. Received
> frames will reported as transmitted frames.
> 
> This commits fixes the i40e implementation of ndo_get_stats64 (struct
> net_device_ops), so that iproute2 will report correct statistics (e.g. when
> running "ip -stats link show dev eth0") even when XDP is enabled.
> 
> Reported-by: Jesper Dangaard Brouer <brouer at redhat.com>
> Fixes: 74608d17fe29 ("i40e: add support for XDP_TX action")
> Signed-off-by: Björn Töpel <bjorn.topel at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 24 +++++++++++----------
>  1 file changed, 13 insertions(+), 11 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>



More information about the Intel-wired-lan mailing list