net: ethtool: Add support for writing firmware blocks using EPL payload
authorDanielle Ratson <danieller@nvidia.com>
Wed, 9 Oct 2024 10:53:47 +0000 (13:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2024 17:02:50 +0000 (18:02 +0100)
commit9a3b0d078bd825613c0821bf7bf5a2e1d8d60057
treeea2bb79da10eb5a41b33074641bda484194bc659
parentedc344568922eb9588e77ba49de1ef0cb9a2ff1c
net: ethtool: Add support for writing firmware blocks using EPL payload

In the CMIS specification for pluggable modules, LPL (Local Payload) and
EPL (Extended Payload) are two types of data payloads used for managing
various functions and features of the module.

EPL payloads are used for more complex and extensive management
functions that require a larger amount of data, so writing firmware
blocks using EPL is much more efficient.

Currently, only LPL payload is supported for writing firmware blocks to
the module.

Add support for writing firmware block using EPL payload, both to
support modules that supports only EPL write mechanism, and to optimize
the flashing process of modules that support LPL and EPL.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/cmis.h
net/ethtool/cmis_cdb.c
net/ethtool/cmis_fw_update.c