]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfp: flower: ignore duplicate cb requests for same rule
authorJohn Hurley <john.hurley@netronome.com>
Wed, 25 Apr 2018 04:17:04 +0000 (21:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2018 18:07:04 +0000 (14:07 -0400)
commitc50647d3e8fd4149ecd78e9a234336e727f48107
tree00e1a845686a280d7cdbb205e409919141e450d4
parent54a4a03439305f701834cef1e4bd108548388d83
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>
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/offload.c