OSDN Git Service

net: microchip: sparx5: add support for PSFP stream gates
authorDaniel Machon <daniel.machon@microchip.com>
Thu, 2 Feb 2023 10:43:52 +0000 (11:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 08:26:26 +0000 (08:26 +0000)
commitc70a5e2c3d18f2ddad0a3d912afa60a1cc7c8e27
treeb78e64e84302c050930a453de42eab16fa372bf9
parent9e02131ec272d031508aa36f30dd5d4d4ab7bf55
net: microchip: sparx5: add support for PSFP stream gates

Add support for configuring PSFP stream gates (IEEE 802.1Q-2018,
8.6.5.1.2).

Stream gates are time-based policers used by PSFP. Frames are dropped
based on the gate state (OPEN/ CLOSE), whose state will be altered based
on the Gate Control List (GCL) and current PTP time. Apart from
time-based policing, stream gates can alter egress queue selection for
the frames that pass through the Gate. This is done through Internal
Priority Selector (IPS). Stream gates are mapped from stream filters.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_psfp.c