diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-11-25 10:50:08 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-11-29 13:08:23 +0100 |
commit | 61caac2d1ab51a188f3439d0645b756fde317c1c (patch) | |
tree | 23ac6416fbbc622e8c7a93233426139453a4b9f1 /drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c | |
parent | 3643abd6e6bc1adce8979e974ee7ede387948c1c (diff) | |
download | linux-stable-61caac2d1ab51a188f3439d0645b756fde317c1c.tar.gz linux-stable-61caac2d1ab51a188f3439d0645b756fde317c1c.tar.bz2 linux-stable-61caac2d1ab51a188f3439d0645b756fde317c1c.zip |
net: lan966x: add tc matchall goto action
Extend matchall with action goto. This is needed to enable the lookup in
the VCAP. It is needed to connect chain 0 to a chain that is recognized
by the HW.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c')
-rw-r--r-- | drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c b/drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c index 7368433b9277..a539abaad9b6 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_tc_matchall.c @@ -23,6 +23,9 @@ static int lan966x_tc_matchall_add(struct lan966x_port *port, case FLOW_ACTION_MIRRED: return lan966x_mirror_port_add(port, act, f->cookie, ingress, f->common.extack); + case FLOW_ACTION_GOTO: + return lan966x_goto_port_add(port, act, f->cookie, + f->common.extack); default: NL_SET_ERR_MSG_MOD(f->common.extack, "Unsupported action"); @@ -43,6 +46,9 @@ static int lan966x_tc_matchall_del(struct lan966x_port *port, f->cookie == port->tc.egress_mirror_id) { return lan966x_mirror_port_del(port, ingress, f->common.extack); + } else if (f->cookie == port->tc.goto_id) { + return lan966x_goto_port_del(port, f->cookie, + f->common.extack); } else { NL_SET_ERR_MSG_MOD(f->common.extack, "Unsupported action"); |