numam-dpdk/drivers/net/octeontx2
Ferruh Yigit d345d6c957 drivers/net: fix FW version query
Fixes a few different things:
* Remove 'fw_version' NULL checks, it is allowed if the 'fw_size' is
  zero, 'fw_version' being NULL but 'fw_size' not zero condition checked
  in ethdev layer
* Be sure required buffer size is returned if provided one is not big
  enough, instead of returning success (0)
* Document in doxygen comment the '-EINVAL' is a valid return type
* Take into account that 'snprintf' can return negative value
* Cast length to 'size_t' to compare it with 'fw_size'

Fixes: bb42aa9ffe ("net/atlantic: configure device start/stop")
Fixes: ff70acdf42 ("net/axgbe: support reading FW version")
Fixes: e2652b0a20 ("net/bnxt: support get FW version")
Fixes: cf0fab1d2c ("net/dpaa: support firmware version get API")
Fixes: 748eccb97c ("net/dpaa2: add support for firmware version get")
Fixes: b883c0644a ("net/e1000: add firmware version get")
Fixes: 293430677e ("net/enic: add handler to return firmware version")
Fixes: 1f5ca0b460 ("net/hns3: support some device operations")
Fixes: bd5b86732b ("net/hns3: modify format for firmware version")
Fixes: ed0dfdd0e9 ("net/i40e: add firmware version get")
Fixes: e31cb9a362 ("net/ice: support FW version getting")
Fixes: 4f09bc55ac ("net/igc: implement device base operations")
Fixes: eec10fb0ce ("net/ionic: support FW version")
Fixes: 8b0b565742 ("net/ixgbe: add firmware version get")
Fixes: 4d9f5b8adc ("net/octeontx2: add FW version get operation")
Fixes: f97b56f9f1 ("net/qede: support FW version query")
Fixes: 83fef46a22 ("net/sfc: add callback to retrieve FW version")
Fixes: bc84ac0fad ("net/txgbe: support getting FW version")
Fixes: 2191347120 ("ethdev: add firmware version get")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
Acked-by: Jiawen Wu <jiawenwu@trustnetic.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2021-04-26 13:50:42 +02:00
..
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
otx2_ethdev_debug.c net/octeontx2: support TM debug 2020-04-21 13:57:06 +02:00
otx2_ethdev_devargs.c net/octeontx2: support flow action port ID 2021-04-08 17:09:57 +02:00
otx2_ethdev_irq.c net/octeontx2: disable unnecessary error interrupts 2020-04-21 13:57:07 +02:00
otx2_ethdev_ops.c drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
otx2_ethdev_sec_tx.h event/octeontx2: enhance Tx path cache locality 2021-01-26 10:39:03 +01:00
otx2_ethdev_sec.c security: switch metadata to dynamic mbuf field 2020-10-31 16:13:11 +01:00
otx2_ethdev_sec.h crypto/octeontx2: add lookaside SA context definitions 2020-07-18 23:09:02 +02:00
otx2_ethdev.c net/octeontx2: support flow action port ID 2021-04-08 17:09:57 +02:00
otx2_ethdev.h net/octeontx2: support flow action port ID 2021-04-08 17:09:57 +02:00
otx2_flow_ctrl.c net/octeontx2: fix flow control initial state 2020-02-15 10:23:07 +01:00
otx2_flow_dump.c net/octeontx2: support raw flow pattern 2021-03-20 15:16:55 +01:00
otx2_flow_parse.c net/octeontx2: support flow action port ID 2021-04-08 17:09:57 +02:00
otx2_flow_utils.c net/octeontx2: support raw flow pattern 2021-03-20 15:16:55 +01:00
otx2_flow.c ethdev: dump single flow rule 2021-04-14 13:19:55 +02:00
otx2_flow.h net/octeontx2: support raw flow pattern 2021-03-20 15:16:55 +01:00
otx2_link.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
otx2_lookup.c mbuf: rename outer IP checksum macro 2021-03-02 10:57:28 +01:00
otx2_mac.c net/octeontx2: fix DMAC filtering 2020-06-30 14:52:30 +02:00
otx2_mcast.c net/octeontx2: support multicast filter 2019-10-23 16:43:10 +02:00
otx2_ptp.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
otx2_rss.c net/octeontx2: support 24B custom L2 header parsing 2021-01-13 19:39:08 +01:00
otx2_rx.c net/octeontx2: fix corruption in segments list 2021-01-13 19:39:08 +01:00
otx2_rx.h crypto/octeontx2: make anti-replay routine generic 2021-01-19 18:04:49 +01:00
otx2_stats.c ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
otx2_tm.c net/octeontx2: set max VTAG insertion size 2020-09-30 19:19:11 +02:00
otx2_tm.h net/octeontx2: support TM length adjust and packet mode 2020-09-18 18:55:10 +02:00
otx2_tx.c net/octeontx2: avoid per packet barrier with multi segment 2020-11-03 23:35:06 +01:00
otx2_tx.h net/octeontx2: avoid per packet barrier with multi segment 2020-11-03 23:35:06 +01:00
otx2_vlan.c net/octeontx2: fix VLAN filter 2021-03-08 14:31:22 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00