]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: resources: Add resource identifier for maximum number of FIDs
authorAmit Cohen <amcohen@nvidia.com>
Sun, 24 Jul 2022 08:03:22 +0000 (11:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 12:58:55 +0000 (13:58 +0100)
commit7c3f5cc1f01c717c0d7cd13c84589f8b69541148
treee519a2b1403689e2423c3a149f7b59fc7b509bc2
parent9baa9b87dd38b9e563b85072656d3444535c5a78
mlxsw: resources: Add resource identifier for maximum number of FIDs

Add a resource identifier for maximum number of FIDs so that it could be
later used to query the information from firmware.

In Spectrum-2 and Spectrum-3, the correction field of PTP packets which are
sent as control packets is not updated at egress port. To overcome this
limitation, some packets will be sent as data packets. The header should
include FID, which is supposed to be 'Max FID + port - 1'. As preparation,
add the required resource, to be able to query the value from firmware
later.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/resources.h