nfp: flower: add ipv4 set ttl and tos offload
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Wed, 7 Nov 2018 01:07:28 +0000 (17:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2018 19:45:21 +0000 (11:45 -0800)
commita3c6b063fee70a7ceae385741210f39b1ec2ab94
tree42f8a4707b87e88b4ed82cb0fd11343d7b199a11
parent6a02d1fa0371b566f8a7586a520ca5f34078270e
nfp: flower: add ipv4 set ttl and tos offload

Add ipv4 set ttl and tos action offload. Since pedit sets headers per 4
byte word, we need to ensure that setting either version, ihl, protocol,
total length or checksum does not get offloaded.

Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-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/action.c
drivers/net/ethernet/netronome/nfp/flower/cmsg.h