Skip to content

Commit 7598531

Browse files
leitaokuba-moo
authored andcommitted
net: amt: Remove generic .ndo_get_stats64
Commit 3e2f544 ("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 <[email protected]> Reviewed-by: Taehee Yoo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2892956 commit 7598531

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/amt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3084,7 +3084,6 @@ static const struct net_device_ops amt_netdev_ops = {
30843084
.ndo_open = amt_dev_open,
30853085
.ndo_stop = amt_dev_stop,
30863086
.ndo_start_xmit = amt_dev_xmit,
3087-
.ndo_get_stats64 = dev_get_tstats64,
30883087
};
30893088

30903089
static void amt_link_setup(struct net_device *dev)

0 commit comments

Comments
 (0)