mirror_ubuntu-kernels/drivers/net/ethernet/marvell
Volodymyr Mytnyk e8bd70250a prestera: acl: add action hw_stats support
Currently, when user adds a tc action and the action gets offloaded,
the user expects the HW stats to be counted also. This limits the
amount of supported offloaded filters, as HW counter resources may
be quite limited. Without counter assigned, the HW is capable to
carry much more filters.

To resolve the issue above, the following types of HW stats are
offloaded and supported by the driver:

any       - current default, user does not care about the type.
delayed   - polled from HW periodically.
disabled  - no HW stats needed.
immediate - not supported.

Example:
  tc filter add dev PORT ingress proto ip flower skip_sw ip_proto 0x11 \
    action drop
  tc filter add dev PORT ingress proto ip flower skip_sw ip_proto 0x12 \
    action drop hw_stats disabled
  tc filter add dev sw1p1 ingress proto ip flower skip_sw ip_proto 0x14 \
    action drop hw_stats delayed

Signed-off-by: Volodymyr Mytnyk <vmytnyk@marvell.com>
Link: https://lore.kernel.org/r/1649164814-18731-1-git-send-email-volodymyr.mytnyk@plvision.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-04-06 22:47:38 -07:00
..
mvpp2 net: mvpp2: always set port pcs ops 2022-02-18 20:14:16 -08:00
octeontx2 octeontx2-af: initialize action variable 2022-03-26 14:14:04 -07:00
prestera prestera: acl: add action hw_stats support 2022-04-06 22:47:38 -07:00
Kconfig net: marvell: Remove reference to CONFIG_MV64X60 2021-03-18 14:19:39 -07:00
Makefile net: marvell: prestera: Add driver for Prestera family ASIC devices 2020-09-17 16:35:46 -07:00
mv643xx_eth.c net: mv643xx_eth: undo some opreations in mv643xx_eth_probe 2022-03-16 19:31:00 -07:00
mvmdio.c net: mvmdio: fix compilation warning 2021-11-16 18:55:17 -08:00
mvneta_bm.c
mvneta_bm.h
mvneta.c net: mvneta: Add support for 98DX2530 Ethernet port 2022-03-17 10:49:26 +01:00
pxa168_eth.c net: pxa168_eth: Use platform_get_irq() to get the interrupt 2021-12-27 12:22:19 +00:00
skge.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
skge.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sky2.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
sky2.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00