[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170605143832.7025-1-jiri@resnulli.us>
Date: Mon, 5 Jun 2017 16:38:26 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, jhs@...atatu.com, xiyou.wangcong@...il.com,
edumazet@...gle.com, alexander.h.duyck@...el.com,
stephen@...workplumber.org, daniel@...earbox.net,
mlxsw@...lanox.com
Subject: [patch net-next 0/6] introduce trap control action to tc and offload it
From: Jiri Pirko <jiri@...lanox.com>
This patchset introduces a control action dedicated to indicate
to trap the matched packet to CPU. This is specific action for
HW offloads. Also, the patchset offloads the action to mlxsw driver.
Example usage:
$ tc filter add dev enp3s0np19 parent ffff: protocol ip prio 20 flower skip_sw dst_ip 192.168.10.1 action trap
Jiri Pirko (6):
net: sched: introduce a TRAP control action
net: sched: introduce helper to identify gact trap action
mlxsw: pci: Fix size of trap_id field in CQE
mlxsw: spectrum: Introduce ACL trap
acl: Introduce ACL trap action
spectrum_flower: Implement gact trap TC action offload
.../mellanox/mlxsw/core_acl_flex_actions.c | 40 ++++++++++++++++++++--
.../mellanox/mlxsw/core_acl_flex_actions.h | 1 +
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 2 +-
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 4 ++-
drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 1 +
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 5 +++
.../net/ethernet/mellanox/mlxsw/spectrum_flower.c | 4 +++
drivers/net/ethernet/mellanox/mlxsw/trap.h | 1 +
include/net/tc_act/tc_gact.h | 15 ++++++--
include/uapi/linux/pkt_cls.h | 5 +++
net/core/dev.c | 2 ++
net/sched/cls_bpf.c | 1 +
net/sched/sch_atm.c | 1 +
net/sched/sch_cbq.c | 1 +
net/sched/sch_drr.c | 1 +
net/sched/sch_dsmark.c | 1 +
net/sched/sch_fq_codel.c | 1 +
net/sched/sch_hfsc.c | 1 +
net/sched/sch_htb.c | 1 +
net/sched/sch_multiq.c | 1 +
net/sched/sch_prio.c | 1 +
net/sched/sch_qfq.c | 1 +
net/sched/sch_sfb.c | 1 +
net/sched/sch_sfq.c | 1 +
24 files changed, 87 insertions(+), 6 deletions(-)
--
2.9.3
Powered by blists - more mailing lists