diff options
author | John Hurley <john.hurley@netronome.com> | 2018-04-24 21:17:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-25 14:07:04 -0400 |
commit | c50647d3e8fd4149ecd78e9a234336e727f48107 (patch) | |
tree | 00e1a845686a280d7cdbb205e409919141e450d4 /drivers/net/ethernet/netronome/nfp/flower/main.h | |
parent | 54a4a03439305f701834cef1e4bd108548388d83 (diff) | |
download | linux-c50647d3e8fd4149ecd78e9a234336e727f48107.tar.bz2 |
nfp: flower: ignore duplicate cb requests for same rule
If a flower rule has a repr both as ingress and egress port then 2
callbacks may be generated for the same rule request.
Add an indicator to each flow as to whether or not it was added from an
ingress registered cb. If so then ignore add/del/stat requests to it from
an egress cb.
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower/main.h')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/flower/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/main.h b/drivers/net/ethernet/netronome/nfp/flower/main.h index 9e6804bc9b40..733ff53cc601 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/main.h +++ b/drivers/net/ethernet/netronome/nfp/flower/main.h @@ -194,6 +194,7 @@ struct nfp_fl_payload { char *unmasked_data; char *mask_data; char *action_data; + bool ingress_offload; }; struct nfp_fl_stats_frame { |