[v2,0/3] reload the firmware as needed

Message ID 20240301084244.190484-1-chaoyong.he@corigine.com (mailing list archive)
Headers
Series reload the firmware as needed |

Message

Chaoyong He March 1, 2024, 8:42 a.m. UTC
  Add the necessary logic to get firmware version from firmware file, and
only reload the firmware when the firmware version changed.

Also add a device argument which can force reload the firmware and
ignore the firmware version.

---
v2:
* Update commit log to explain what 'MIP' is.
* Document about the new add 'force_reload_fw' device argument.
---

Peng Zhang (3):
  net/nfp: add the elf module
  net/nfp: reload the firmware only when firmware changed
  net/nfp: add force reload firmware option

 doc/guides/nics/nfp.rst           |   21 +
 drivers/net/nfp/meson.build       |    1 +
 drivers/net/nfp/nfp_ethdev.c      |  177 ++++-
 drivers/net/nfp/nfp_net_common.c  |   17 +
 drivers/net/nfp/nfp_net_common.h  |   10 +
 drivers/net/nfp/nfpcore/nfp_elf.c | 1079 +++++++++++++++++++++++++++++
 drivers/net/nfp/nfpcore/nfp_elf.h |   13 +
 drivers/net/nfp/nfpcore/nfp_mip.c |   30 +-
 drivers/net/nfp/nfpcore/nfp_mip.h |   70 +-
 9 files changed, 1376 insertions(+), 42 deletions(-)
 create mode 100644 drivers/net/nfp/nfpcore/nfp_elf.c
 create mode 100644 drivers/net/nfp/nfpcore/nfp_elf.h
  

Comments

Ferruh Yigit March 4, 2024, 1:28 p.m. UTC | #1
On 3/1/2024 8:42 AM, Chaoyong He wrote:
> Add the necessary logic to get firmware version from firmware file, and
> only reload the firmware when the firmware version changed.
> 
> Also add a device argument which can force reload the firmware and
> ignore the firmware version.
> 
> ---
> v2:
> * Update commit log to explain what 'MIP' is.
> * Document about the new add 'force_reload_fw' device argument.
> ---
> 
> Peng Zhang (3):
>   net/nfp: add the elf module
>   net/nfp: reload the firmware only when firmware changed
>   net/nfp: add force reload firmware option
>

Series applied to dpdk-next-net/main, thanks.