numam-dpdk/drivers/net/i40e
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
..
base build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
i40e_ethdev_vf.c net/iavf: deprecate i40evf PMD 2021-04-19 10:36:17 +02:00
i40e_ethdev.c drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
i40e_ethdev.h net/i40e: fix flow director config after flow validate 2021-04-01 13:56:34 +02:00
i40e_fdir.c net/i40e: fix flow director for common pctypes 2021-04-21 16:38:37 +02:00
i40e_flow.c net/i40e: fix flow director config after flow validate 2021-04-01 13:56:34 +02:00
i40e_hash.c net/i40e: fix register setting for hash enable 2021-01-29 18:16:11 +01:00
i40e_hash.h net/i40e: refactor RSS flow 2021-01-08 19:20:09 +01:00
i40e_logs.h net/i40e: refine debug build option 2021-04-01 16:10:20 +02:00
i40e_pf.c net/i40e: announce request queue capability in PF 2021-03-30 01:17:15 +02:00
i40e_pf.h
i40e_regs.h
i40e_rxtx_vec_altivec.c mbuf: rename outer IP checksum macro 2021-03-02 10:57:28 +01:00
i40e_rxtx_vec_avx2.c net/i40e: fix crash in AVX512 2021-04-14 14:29:47 +02:00
i40e_rxtx_vec_avx512.c net/i40e: fix crash in AVX512 2021-04-14 14:29:47 +02:00
i40e_rxtx_vec_common.h net/i40e: fix crash in AVX512 2021-04-14 14:29:47 +02:00
i40e_rxtx_vec_neon.c net/i40e: fix parsing packet type for NEON 2021-03-30 01:17:15 +02:00
i40e_rxtx_vec_sse.c mbuf: rename outer IP checksum macro 2021-03-02 10:57:28 +01:00
i40e_rxtx.c net/i40e: add Tx preparation for simple Tx datapath 2021-04-20 16:01:15 +02:00
i40e_rxtx.h net/i40e: add Tx preparation for simple Tx datapath 2021-04-20 16:01:15 +02:00
i40e_tm.c drivers/net: build i40e and mlx5 on Windows 2021-01-14 23:51:24 +01:00
i40e_vf_representor.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
rte_pmd_i40e.c net/i40e: add null input checks 2021-01-13 18:51:58 +01:00
rte_pmd_i40e.h net/i40e: add C++ include guard 2020-11-13 19:43:26 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00