diff options
author | Dmitry Bogdanov <dbogdanov@marvell.com> | 2020-03-25 15:52:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-27 06:17:37 +0300 |
commit | aec0f1aac58e81e88efe381dc5813e2e4d2858f2 (patch) | |
tree | f163e75cb1873f4589331e3efcea63a46c90549c /drivers/net/ethernet/aquantia/atlantic/aq_nic.c | |
parent | aaa36515336d687e45dc85b745cbf977fe1e1dc1 (diff) | |
download | linux-aec0f1aac58e81e88efe381dc5813e2e4d2858f2.tar.xz |
net: atlantic: MACSec offload statistics implementation
This patch adds support for MACSec statistics on Atlantic network cards.
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_nic.c')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c index 5d4c16d637c7..a369705a786a 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c @@ -781,7 +781,7 @@ int aq_nic_get_regs_count(struct aq_nic_s *self) return self->aq_nic_cfg.aq_hw_caps->mac_regs_count; } -void aq_nic_get_stats(struct aq_nic_s *self, u64 *data) +u64 *aq_nic_get_stats(struct aq_nic_s *self, u64 *data) { struct aq_vec_s *aq_vec = NULL; struct aq_stats_s *stats; @@ -831,7 +831,10 @@ void aq_nic_get_stats(struct aq_nic_s *self, u64 *data) aq_vec_get_sw_stats(aq_vec, data, &count); } + data += count; + err_exit:; + return data; } static void aq_nic_update_ndev_stats(struct aq_nic_s *self) |