mlxsw: spectrum_fid: Add an "any" packet type
authorPetr Machata <petrm@nvidia.com>
Thu, 14 Dec 2023 13:19:06 +0000 (14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2023 10:58:00 +0000 (10:58 +0000)
commitb2f5eb5a6509f055e24d141aeebb0d9d9f69d1f4
tree4c5c23bbc6805ddb4a3b94ae92d2663e9dc3c987
parentd9d441e8e89db78683032bcedb74964575a8eafe
mlxsw: spectrum_fid: Add an "any" packet type

Flood profiles have been used prior to CFF support for NVE underlay. Like
is the case with FID flooding, an NVE profile describes at which offset a
datum is located given traffic type. mlxsw currently only ever uses one KVD
entry for NVE lookup, i.e. regardless of traffic type, the offset is always
zero. To be able to describe this, add a traffic type enumerator describing
"any traffic type".

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