Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: bareudp: Remove generic .ndo_get_stats64

Commit 3e2f544dd8a33 ("net: get stats64 if device if driver is
configured") moved the callback to dev_get_tstats64() to net core, so,
unless the driver is doing some custom stats collection, it does not
need to set .ndo_get_stats64.

Since this driver is now relying in NETDEV_PCPU_STAT_TSTATS, then, it
doesn't need to set the dev_get_tstats64() generic .ndo_get_stats64
function pointer.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Breno Leitao and committed by
David S. Miller
4ab597d2 6f355bbb

-1
-1
drivers/net/bareudp.c
··· 523 523 .ndo_open = bareudp_open, 524 524 .ndo_stop = bareudp_stop, 525 525 .ndo_start_xmit = bareudp_xmit, 526 - .ndo_get_stats64 = dev_get_tstats64, 527 526 .ndo_fill_metadata_dst = bareudp_fill_metadata_dst, 528 527 }; 529 528