Skip to content

new API 'rte_eth_dev_fw_version_get'

Qiming Yang dpdk-dev 10 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest5 patches 1 replyApplied
  2. v95 patches 2 repliesSuperseded
  3. v85 patches 1 replySuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v75 patches2 repliesSuperseded
v65 patches0 repliesSuperseded
v55 patches9 repliesSuperseded
v45 patches8 repliesSuperseded
v34 patches16 repliesSuperseded
v25 patches18 repliesSuperseded
v11 patch0 repliesSuperseded

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/5ethdev: add firmware version getdoc/guides/nics/features/default.ini doc/guides/rel_notes/deprecation.rst doc/guides/rel_notes/release_17_02.rst +3 more+45 -40 replies
2/5net/e1000: add firmware version getdoc/guides/nics/features/igb.ini drivers/net/e1000/igb_ethdev.c+56 -00 replies
3/5net/ixgbe: add firmware version getdoc/guides/nics/features/ixgbe.ini drivers/net/ixgbe/ixgbe_ethdev.c+25 -00 replies
4/5net/i40e: add firmware version getdoc/guides/nics/features/i40e.ini drivers/net/i40e/i40e_ethdev.c+32 -00 replies
5/5ethtool: display firmware versionexamples/ethtool/ethtool-app/ethapp.c examples/ethtool/lib/rte_ethtool.c+10 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRemy Horton
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/5] new API 'rte_eth_dev_fw_version_get'

v10:- highlighted that terminating null is included in the output string array.
removed the warning message in drivers.

v9: - when fw_size is insufficient, return the size of the non truncated
string as snprintf does.

v8: - defined the minimum fw version size as a macro.

v7: - rebased

v6: - renamed fw_length -> fw_size
- added return value for insufficient fw_size
- fixed the indentation problem in e1000
- added ver.build.patch in i40e, keep the same with Linux kernel driver

v5: - modified the API rte_eth_dev_fw_version_get(uint8_t port_id,
char *fw_version, int fw_length).

v4: - removed deprecation notice
- renamed API as rte_eth_dev_fw_version_get
- splited bus info print from this patch set

v3: - changed API, use rte_eth_dev_fw_info_get(uint8_t port_id,

      uint32_t *fw_major, uint32_t *fw_minor, uint32_t *fw_patch,
      uint32_t *etrack_id)
    - added statusment in /doc/guides/nics/features/default.ini and
      release_17_02.rst

v2: - fixed commit log

Now, the example ethtool can only show the driver information. From customers' point of view, it should be better if we can have the same way that the Linux kernel ethtool does to show firmware version.

These five patches added a new function ``rte_eth_dev_fw_version_get()`` to fetch firmware version related information and implement the display in example ethtool.

Qiming Yang (5):
ethdev: add firmware version get
net/e1000: add firmware version get
net/ixgbe: add firmware version get
net/i40e: add firmware version get
ethtool: display firmware version

 doc/guides/nics/features/default.ini   |  1 +
 doc/guides/nics/features/i40e.ini      |  1 +
 doc/guides/nics/features/igb.ini       |  1 +
 doc/guides/nics/features/ixgbe.ini     |  1 +
 doc/guides/rel_notes/deprecation.rst   |  4 ---
 doc/guides/rel_notes/release_17_02.rst |  5 ++++
 drivers/net/e1000/igb_ethdev.c         | 55 ++++++++++++++++++++++++++++++++++
 drivers/net/i40e/i40e_ethdev.c         | 31 +++++++++++++++++++
 drivers/net/ixgbe/ixgbe_ethdev.c       | 24 +++++++++++++++
 examples/ethtool/ethtool-app/ethapp.c  |  1 +
 examples/ethtool/lib/rte_ethtool.c     |  9 ++++++
 lib/librte_ether/rte_ethdev.c          | 12 ++++++++
 lib/librte_ether/rte_ethdev.h          | 26 ++++++++++++++++
 lib/librte_ether/rte_ether_version.map |  1 +
 14 files changed, 168 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4