nfp: flower: fix multiple keys per pedit action
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Mon, 15 Oct 2018 23:52:24 +0000 (16:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 06:17:24 +0000 (23:17 -0700)
commitd08c9e589300b015e72e5b41ff4dfed6eb8e7421
tree7876c2a2b19597ef241f08baad4fb1583c098b87
parent8913806f166e47c6b3fe8253e9cfb9caabe64341
nfp: flower: fix multiple keys per pedit action

Previously we only allowed a single header key per pedit action to
change the header. This used to result in the last header key in the
pedit action to overwrite previous headers. We now keep track of them
and allow multiple header keys per pedit action.

Fixes: c0b1bd9a8b8a ("nfp: add set ipv4 header action flower offload")
Fixes: 354b82bb320e ("nfp: add set ipv6 source and destination address")
Fixes: f8b7b0a6b113 ("nfp: add set tcp and udp header action flower offload")
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@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/action.c