numam-dpdk/drivers/net/bnxt
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
..
hcapi net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_core net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
tf_ulp net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_cpr.c net/bnxt: handle echo request async message 2021-03-12 07:00:22 +01:00
bnxt_cpr.h net/bnxt: fix Rx queue count 2021-03-01 01:26:10 +01:00
bnxt_ethdev.c drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
bnxt_filter.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_filter.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_flow.c net/bnxt: fix handling of null flow mask 2021-03-19 20:29:56 +01:00
bnxt_hwrm.c net/bnxt: fix resource cleanup 2021-04-19 21:32:11 +02:00
bnxt_hwrm.h net/bnxt: fix VF info allocation 2021-03-12 07:13:28 +01:00
bnxt_irq.c net/bnxt: rename a member to avoid conflict 2021-03-12 07:13:49 +01:00
bnxt_irq.h net/bnxt: rename a member to avoid conflict 2021-03-12 07:13:49 +01:00
bnxt_nvm_defs.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_reps.c ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
bnxt_reps.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_ring.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_ring.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_rxq.c net/bnxt: refactor mbuf pointer reset 2021-03-12 07:13:27 +01:00
bnxt_rxq.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_rxr.c net/bnxt: fix Rx buffer posting 2021-03-19 20:29:56 +01:00
bnxt_rxr.h net/bnxt: fix Rx buffer posting 2021-03-19 20:29:56 +01:00
bnxt_rxtx_vec_common.h net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_rxtx_vec_neon.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_rxtx_vec_sse.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_stats.c net/bnxt: fix xstats get 2021-03-12 16:24:53 +01:00
bnxt_stats.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_txq.c net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_txq.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_txr.c net/bnxt: fix Tx length hint threshold 2021-03-19 20:29:56 +01:00
bnxt_txr.h net/bnxt: optimize Tx completion handling 2021-03-12 16:07:33 +01:00
bnxt_util.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_util.h net/bnxt: fix firmware fatal error handling 2021-03-12 07:00:22 +01:00
bnxt_vnic.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
bnxt_vnic.h net/bnxt: fix VNIC configuration 2021-03-12 07:00:20 +01:00
bnxt.h net/bnxt: cap max Rx rings for Thor 2021-04-20 00:56:43 +02:00
hsi_struct_def_dpdk.h net/bnxt: update HWRM structures 2021-03-12 07:00:21 +01:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
rte_pmd_bnxt.c net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
rte_pmd_bnxt.h net/bnxt: update copyright year 2021-01-29 18:16:10 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00