5af946f4 | 20-Apr-2024 |
Daniel Machon <daniel.machon@microchip.com> |
net: sparx5: add support for matchall mirror stats
Add support for tc matchall mirror stats. When a new matchall mirror rule is added, the baseline stats for that port is saved.
Signed-off-by: Dani
net: sparx5: add support for matchall mirror stats
Add support for tc matchall mirror stats. When a new matchall mirror rule is added, the baseline stats for that port is saved.
Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
2ac99ed9 | 20-Apr-2024 |
Daniel Machon <daniel.machon@microchip.com> |
net: sparx5: add the tc glue to support port mirroring
Add the necessary tc glue to add and delete mirror rules through tc matchall.
Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Revie
net: sparx5: add the tc glue to support port mirroring
Add the necessary tc glue to add and delete mirror rules through tc matchall.
Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
4e50d72b | 20-Apr-2024 |
Daniel Machon <daniel.machon@microchip.com> |
net: sparx5: add port mirroring implementation
The hardware supports three independent mirroring probes. Each probe can be configured to mirror rx or tx traffic (direction).
Using tc matchall, it i
net: sparx5: add port mirroring implementation
The hardware supports three independent mirroring probes. Each probe can be configured to mirror rx or tx traffic (direction).
Using tc matchall, it is now possible to add a source port and a monitor port to a mirror probe. Depending on the mirror direction, rx or tx traffic from a source port will be mirrored to the monitor port.
A single source port can be a member of multiple mirror probes.
Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
1ede4acf | 20-Apr-2024 |
Daniel Machon <daniel.machon@microchip.com> |
net: sparx5: add bookkeeping code for matchall rules
In preparation for new tc matchall rules, we add a bit of bookkeeping code to keep track of them. The rules are identified by the cookie passed f
net: sparx5: add bookkeeping code for matchall rules
In preparation for new tc matchall rules, we add a bit of bookkeeping code to keep track of them. The rules are identified by the cookie passed from the tc stack.
Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
1164b8e0 | 05-Apr-2024 |
Daniel Machon <daniel.machon@microchip.com> |
net: sparx5: add support for tc flower redirect action
Add support for the flower redirect action. Two VCAP actions are encoded in the rule - one for the port mask, and one for the port mask mode. W
net: sparx5: add support for tc flower redirect action
Add support for the flower redirect action. Two VCAP actions are encoded in the rule - one for the port mask, and one for the port mask mode. When the rule is hit, the port mask is used as the final destination set, replacing all other port masks.
Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
fd770e85 | 01-Aug-2023 |
Vladimir Oltean <vladimir.oltean@nxp.com> |
net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers
It is desirable that the new .ndo_hwtstamp_set() API gives more uniformity, less overhead and future flexibility w.r
net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers
It is desirable that the new .ndo_hwtstamp_set() API gives more uniformity, less overhead and future flexibility w.r.t. the PHY timestamping behavior.
Currently there are some drivers which allow PHY timestamping through the procedure mentioned in Documentation/networking/timestamping.rst. They don't do anything locally if phy_has_hwtstamp() is set, except for lan966x which installs PTP packet traps.
Centralize that behavior in a new dev_set_hwtstamp_phylib() code function, which calls either phy_mii_ioctl() for the phylib PHY, or .ndo_hwtstamp_set() of the netdev, based on a single policy (currently simplistic: phy_has_hwtstamp()).
Any driver converted to .ndo_hwtstamp_set() will automatically opt into the centralized phylib timestamping policy. Unconverted drivers still get to choose whether they let the PHY handle timestamping or not.
Netdev drivers with integrated PHY drivers that don't use phylib presumably don't set dev->phydev, and those will always see HWTSTAMP_SOURCE_NETDEV requests even when converted. The timestamping policy will remain 100% up to them.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/20230801142824.1772134-13-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
e1d597ec | 07-Mar-2023 |
Steen Hegelund <steen.hegelund@microchip.com> |
net: microchip: sparx5: Add TC template support
This adds support for using the "template add" and "template destroy" functionality to change the port keyset configuration.
If the VCAP lookup alrea
net: microchip: sparx5: Add TC template support
This adds support for using the "template add" and "template destroy" functionality to change the port keyset configuration.
If the VCAP lookup already contains rules, the port keyset is left unchanged, as a change would make these rules unusable.
When the template is destroyed the port keyset configuration is restored. The filters using the template chain will automatically be deleted by the TC framework.
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|