numam-dpdk/drivers/net
Heinrich Kuhn c0a8b02475 net/nfp: read chip model from PluDevice register
For newer smartNIC NVRAM versions the chip model should be read from the
PluDevice register as it provides the authoritative chip model/revision.
This method of reading the chip model is backwards compatible with
legacy NVRAM versions too.

Since the model number is purely used for reporting purposes, follow the
hardware team convention of subtracting 0x10 from the PluDevice register
to obtain the chip model/revision number.

Fixes: c7e9729da6 ("net/nfp: support CPP")
Cc: stable@dpdk.org

Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Louis Peens <louis.peens@netronome.com>
2021-01-29 18:16:12 +01:00
..
af_packet ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
af_xdp ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
ark ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
atlantic ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
avp ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
axgbe ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
bnx2x ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
bnxt net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bonding ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
cxgbe ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
dpaa ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
dpaa2 net/dpaa2: support MPLS distribution 2021-01-29 18:16:08 +01:00
e1000 net/e1000: fix flow control mode setting 2021-01-29 18:16:07 +01:00
ena ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
enetc ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
enic ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
failsafe ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
fm10k ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
hinic ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
hns3 net/hns3: adjust format specifier for enum 2021-01-29 18:16:12 +01:00
i40e net/i40e: fix register setting for hash enable 2021-01-29 18:16:11 +01:00
iavf net/iavf: adjust VLAN initialize failure handling 2021-01-29 18:16:08 +01:00
ice net/ice/base: do not set VLAN mode in DCF mode 2021-01-29 18:16:11 +01:00
igc ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
ionic net/ionic: fix address handling in Tx 2021-01-29 18:16:10 +01:00
ipn3ke ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
ixgbe net/ixgbe: disable NFS filtering 2021-01-29 18:16:08 +01:00
kni ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
liquidio ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
memif ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4 net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
mlx5 net/mlx5: fix wire vport hint 2021-01-29 18:16:11 +01:00
mvneta ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mvpp2 net/mvpp2: add fill buffs to configuration file 2021-01-29 18:16:11 +01:00
netvsc ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
nfb ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
nfp net/nfp: read chip model from PluDevice register 2021-01-29 18:16:12 +01:00
null ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
octeontx ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
octeontx2 net/octeontx2: fix PF flow action for Tx 2021-01-29 18:16:08 +01:00
pcap ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
pfe ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
qede ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
ring ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
sfc net/sfc: fix generic byte statistics to exclude FCS bytes 2021-01-29 18:16:08 +01:00
softnic ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
szedata2 ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
tap ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
thunderx ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
txgbe ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
vdev_netvsc build: align wording of non-support reasons 2020-11-20 16:05:35 +01:00
vhost ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
virtio net/virtio: fix Arm build with old compiler 2021-01-29 18:16:10 +01:00
vmxnet3 ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
meson.build config: remove compatibility build defines 2021-01-20 01:43:25 +01:00