numam-dpdk/drivers/net/sfc
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 build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
sfc_debug.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_dp_rx.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_dp_tx.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_dp.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_dp.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef10_essb_rx.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef10_rx_ev.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef10_rx.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef10_tx.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef10.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef100_rx.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef100_tx.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ef100.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ethdev.c drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
sfc_ev.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_ev.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_filter.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_filter.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_flow.c net/sfc: allow PPPoE flow pattern items 2021-03-24 13:26:52 +01:00
sfc_flow.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_intr.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_kvargs.c net/sfc: skip driver probe for incompatible device class 2021-03-16 12:39:42 +01:00
sfc_kvargs.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_log.h net/sfc: add more debug messages to transfer flows 2021-04-21 12:38:37 +02:00
sfc_mae.c net/sfc: add more debug messages to transfer flows 2021-04-21 12:38:37 +02:00
sfc_mae.h net/sfc: support action VXLAN encap in MAE backend 2021-03-22 17:19:16 +01:00
sfc_mcdi.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_port.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_rx.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_rx.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_sriov.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_sriov.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_switch.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_switch.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_tso.c net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_tso.h drivers: add missing includes 2021-04-14 11:23:13 +02:00
sfc_tweak.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc_tx.c net/sfc: improve tunnel TSO mask calculation 2021-03-22 18:05:39 +01:00
sfc_tx.h net/sfc: update copyright year 2021-03-12 15:57:16 +01:00
sfc.c common/sfc_efx: move function to get family 2021-03-16 12:39:42 +01:00
sfc.h net/sfc: skip driver probe for incompatible device class 2021-03-16 12:39:42 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00