diff options
author | John Hurley <john.hurley@netronome.com> | 2019-04-15 16:56:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-15 15:45:36 -0700 |
commit | 8af56f40e53b102a1f7ef5cd2b057cd6db776d6e (patch) | |
tree | afc33722607e7a62e09133bd2619e4d16c2b0fbf /drivers/net/ethernet/netronome/nfp/flower/cmsg.h | |
parent | aa6ce2ea0c9301f7d418982d3c0612eec926ac91 (diff) | |
download | linux-stable-8af56f40e53b102a1f7ef5cd2b057cd6db776d6e.tar.gz linux-stable-8af56f40e53b102a1f7ef5cd2b057cd6db776d6e.tar.bz2 linux-stable-8af56f40e53b102a1f7ef5cd2b057cd6db776d6e.zip |
nfp: flower: offload merge flows
A merge flow is formed from 2 sub flows. The match fields of the merge are
the same as the first sub flow that has formed it, with the actions being
a combination of the first and second sub flow. Therefore, a merge flow
should replace sub flow 1 when offloaded.
Offload valid merge flows by using a new 'flow mod' message type to
replace an existing offloaded rule. Track the deletion of sub flows that
are linked to a merge flow and revert offloaded merge rules if required.
Signed-off-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower/cmsg.h')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/flower/cmsg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/cmsg.h b/drivers/net/ethernet/netronome/nfp/flower/cmsg.h index 9288595032cc..a10c29ade5c2 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/cmsg.h +++ b/drivers/net/ethernet/netronome/nfp/flower/cmsg.h @@ -402,6 +402,7 @@ struct nfp_flower_cmsg_hdr { /* Types defined for port related control messages */ enum nfp_flower_cmsg_type_port { NFP_FLOWER_CMSG_TYPE_FLOW_ADD = 0, + NFP_FLOWER_CMSG_TYPE_FLOW_MOD = 1, NFP_FLOWER_CMSG_TYPE_FLOW_DEL = 2, NFP_FLOWER_CMSG_TYPE_LAG_CONFIG = 4, NFP_FLOWER_CMSG_TYPE_PORT_REIFY = 6, |