From: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
To: davem@davemloft.net, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: allan.nielsen@microchip.com, joergen.andreasen@microchip.com,
UNGLinuxDriver@microchip.com, vinicius.gomes@intel.com,
michael.chan@broadcom.com, vishal@chelsio.com,
saeedm@mellanox.com, jiri@mellanox.com, idosch@mellanox.com,
alexandre.belloni@bootlin.com, kuba@kernel.org,
xiaoliang.yang_1@nxp.com, po.liu@nxp.com, claudiu.manoil@nxp.com,
alexandru.marginean@nxp.com, vladimir.oltean@nxp.com,
leoyang.li@nxp.com, mingkai.hu@nxp.com
Subject: [PATCH v1 net-next 0/5] net: dsa: felix: psfp support on
Date: Tue, 20 Oct 2020 15:23:16 +0800 [thread overview]
Message-ID: <20201020072321.36921-1-xiaoliang.yang_1@nxp.com> (raw)
This patch series add gate and police action for tc flower offload to
support Per-Stream Filtering and Policing(PSFP), which is defined in
IEEE802.1Qci.
There is also a TC flower offload to set up VCAPs on ocelot driver.
Because VCAPs use chain 10000-21255, we set chain 30000 to offload to
gate and police action to run PSFP module.
example:
> tc qdisc add dev swp0 clsact
> tc filter add dev swp0 ingress chain 0 pref 49152 flower \
skip_sw action goto chain 30000
> tc filter add dev swp0 ingress chain 30000 protocol 802.1Q \
flower skip_sw dst_mac 42:01:3E:72:2F:6B vlan_id 1 \
action gate index 1 base-time 0 \
sched-entry OPEN 6000 3 -1 \
action police index 1 rate 10Mbit burst 10000
Xiaoliang Yang (5):
net: mscc: ocelot: add and export MAC table lookup operations
net: mscc: ocelot: set vcap IS2 chain to goto PSFP chain
net: dsa: felix: add gate action offload based on tc flower
net: mscc: ocelot: use index to set vcap policer
net: dsa: felix: add police action for tc flower offload
drivers/net/dsa/ocelot/Makefile | 3 +-
drivers/net/dsa/ocelot/felix.c | 25 +
drivers/net/dsa/ocelot/felix.h | 18 +
drivers/net/dsa/ocelot/felix_flower.c | 683 ++++++++++++++++++++++
drivers/net/dsa/ocelot/felix_vsc9959.c | 14 +-
drivers/net/ethernet/mscc/ocelot.c | 33 +-
drivers/net/ethernet/mscc/ocelot.h | 13 -
drivers/net/ethernet/mscc/ocelot_flower.c | 19 +-
drivers/net/ethernet/mscc/ocelot_vcap.c | 107 ++--
include/soc/mscc/ocelot.h | 43 +-
include/soc/mscc/ocelot_ana.h | 10 +
11 files changed, 903 insertions(+), 65 deletions(-)
create mode 100644 drivers/net/dsa/ocelot/felix_flower.c
--
2.17.1
next reply other threads:[~2020-10-20 7:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 7:23 Xiaoliang Yang [this message]
2020-10-20 7:23 ` [PATCH v1 net-next 1/5] net: mscc: ocelot: add and export MAC table lookup operations Xiaoliang Yang
2020-10-20 23:24 ` Vladimir Oltean
2020-10-20 7:23 ` [PATCH v1 net-next 2/5] net: mscc: ocelot: set vcap IS2 chain to goto PSFP chain Xiaoliang Yang
2020-10-20 23:27 ` Vladimir Oltean
2020-10-21 16:59 ` joergen.andreasen
2020-10-20 7:23 ` [PATCH v1 net-next 3/5] net: dsa: felix: add gate action offload based on tc flower Xiaoliang Yang
2020-10-21 0:23 ` Vladimir Oltean
2020-10-20 7:23 ` [PATCH v1 net-next 4/5] net: mscc: ocelot: use index to set vcap policer Xiaoliang Yang
2020-10-20 7:23 ` [PATCH v1 net-next 5/5] net: dsa: felix: add police action for tc flower offload Xiaoliang Yang
2020-10-20 23:38 ` Vladimir Oltean
2020-10-20 20:37 ` [PATCH v1 net-next 0/5] net: dsa: felix: psfp support on Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201020072321.36921-1-xiaoliang.yang_1@nxp.com \
--to=xiaoliang.yang_1@nxp.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alexandru.marginean@nxp.com \
--cc=allan.nielsen@microchip.com \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=idosch@mellanox.com \
--cc=jiri@mellanox.com \
--cc=joergen.andreasen@microchip.com \
--cc=kuba@kernel.org \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.chan@broadcom.com \
--cc=mingkai.hu@nxp.com \
--cc=netdev@vger.kernel.org \
--cc=po.liu@nxp.com \
--cc=saeedm@mellanox.com \
--cc=vinicius.gomes@intel.com \
--cc=vishal@chelsio.com \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox