]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethtool: Add new parameters and a function to support EPL
authorDanielle Ratson <danieller@nvidia.com>
Wed, 9 Oct 2024 10:53:46 +0000 (13:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2024 17:02:50 +0000 (18:02 +0100)
commitedc344568922eb9588e77ba49de1ef0cb9a2ff1c
tree45c1f46b341f48d5656e98d184cca06b6fc6f8fb
parenteae38f09cc0eef6e5d5ff0217a1867431edde09b
net: ethtool: Add new parameters and a function to support EPL

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 EPL related parameters to the function ethtool_cmis_cdb_compose_args()
and add a specific function for calculating the maximum allowable length
extension for EPL. Both will be used in the next patch to add support for
writing firmware blocks using 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