diff options
author | Amit Cohen <amcohen@nvidia.com> | 2023-01-19 11:32:31 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-20 18:50:15 -0800 |
commit | 6ee0d3a9dc00b3cae3434fb60569a8ba0381a176 (patch) | |
tree | 08d2521c0995d83508ad2fa932f03acc3fcc2163 /drivers/net/ethernet/mellanox/mlxsw | |
parent | 695f7306d9429e5580fc055fe5cfd08405e0c258 (diff) | |
download | linux-stable-6ee0d3a9dc00b3cae3434fb60569a8ba0381a176.tar.gz linux-stable-6ee0d3a9dc00b3cae3434fb60569a8ba0381a176.tar.bz2 linux-stable-6ee0d3a9dc00b3cae3434fb60569a8ba0381a176.zip |
mlxsw: core: Define latency TLV fields
The next patch will add support for latency TLV as part of EMAD (Ethernet
Management Datagrams) packets. As preparation, add the relevant fields.
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.c b/drivers/net/ethernet/mellanox/mlxsw/core.c index 0c6db4c4a979..a51d413ae89b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core.c @@ -378,6 +378,22 @@ MLXSW_ITEM32(emad, string_tlv, len, 0x00, 16, 11); MLXSW_ITEM_BUF(emad, string_tlv, string, 0x04, MLXSW_EMAD_STRING_TLV_STRING_LEN); +/* emad_latency_tlv_type + * Type of the TLV. + * Must be set to 0x4 (latency TLV). + */ +MLXSW_ITEM32(emad, latency_tlv, type, 0x00, 27, 5); + +/* emad_latency_tlv_len + * Length of the latency TLV in u32. + */ +MLXSW_ITEM32(emad, latency_tlv, len, 0x00, 16, 11); + +/* emad_latency_tlv_latency_time + * EMAD latency time in units of uSec. + */ +MLXSW_ITEM32(emad, latency_tlv, latency_time, 0x04, 0, 32); + /* emad_reg_tlv_type * Type of the TLV. * Must be set to 0x3 (register TLV). |