summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
diff options
context:
space:
mode:
authorVeerasenareddy Burru <vburru@marvell.com>2023-03-24 20:47:02 +0300
committerDavid S. Miller <davem@davemloft.net>2023-03-27 10:37:54 +0300
commit0718693fb36cf891c88c64564553452406151d37 (patch)
tree940a5f96a548492cb22944cd2d021bdcd7d54917 /drivers/net/ethernet/marvell/octeon_ep/octep_main.c
parentbaa987988777545c6bf93efdf62a4b2c74f8d739 (diff)
downloadlinux-0718693fb36cf891c88c64564553452406151d37.tar.xz
octeon_ep: function id in link info and stats mailbox commands
Update control mailbox API to include function id in get stats and link info. Signed-off-by: Veerasenareddy Burru <vburru@marvell.com> Signed-off-by: Abhijit Ayarekar <aayarekar@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeon_ep/octep_main.c')
-rw-r--r--drivers/net/ethernet/marvell/octeon_ep/octep_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
index 112d3825e544..ba0d5fe3081d 100644
--- a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
+++ b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
@@ -763,7 +763,10 @@ static void octep_get_stats64(struct net_device *netdev,
int q;
if (netif_running(netdev))
- octep_ctrl_net_get_if_stats(oct, OCTEP_CTRL_NET_INVALID_VFID);
+ octep_ctrl_net_get_if_stats(oct,
+ OCTEP_CTRL_NET_INVALID_VFID,
+ &oct->iface_rx_stats,
+ &oct->iface_tx_stats);
tx_packets = 0;
tx_bytes = 0;