net/atlantic: exclude MACsec counters from xstats
authorPavel Belous <pavel.belous@aquantia.com>
Fri, 20 Sep 2019 16:22:02 +0000 (16:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commit9f3318d1d60d0d1db155e1d1d4e2740d83458aa4
tree39e1b8997e7a5872dec3131150704fa5b1041894
parentbd3e64cb1c38695fb410903feddd287046687271
net/atlantic: exclude MACsec counters from xstats

Currently, driver always return full set of xstats counters, including
MACSEC counters. But this driver also supports AQC100 chips, which
does not have MACSEC feature.
This fix adds checking for MACSEC availability (based on FW capability
bits) and returns xstats without MACSEC counters if MACSEC feature
is not available.

Fixes: 09d4dfa85359 ("net/atlantic: implement MACsec statistics")
Cc: stable@dpdk.org
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
drivers/net/atlantic/atl_ethdev.c