nfp: flower: fix pedit set actions for multiple partial masks
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Mon, 15 Oct 2018 23:52:23 +0000 (16:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 06:17:24 +0000 (23:17 -0700)
commit8913806f166e47c6b3fe8253e9cfb9caabe64341
tree9411eae29df9abaaca8b07c76c14de4397455f90
parent1890fea7936ad9be0b7caf6a94146b0d905c4b60
nfp: flower: fix pedit set actions for multiple partial masks

Previously we did not correctly change headers when using multiple
pedit actions with partial masks. We now take this into account and
no longer just commit the last pedit action.

Fixes: c0b1bd9a8b8a ("nfp: add set ipv4 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