nfp: flower: implement tcp flag match offload
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Fri, 16 Feb 2018 04:19:09 +0000 (20:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 21:24:24 +0000 (16:24 -0500)
commitffa61202fe2972577794004f79652360b5f4ddb0
treec1e93fca144dc3b2a84b550fcd0ac34f1db3a9f1
parent014f9008989c0d6353e15621c6d3c18d6dfc1ab2
nfp: flower: implement tcp flag match offload

Implement tcp flag match offloading. Current tcp flag match support include
FIN, SYN, RST, PSH and URG flags, other flags are unsupported. The PSH and
URG flags are only set in the hardware fast path when used in combination
with the SYN, RST and PSH flags.

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/cmsg.h
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/match.c
drivers/net/ethernet/netronome/nfp/flower/offload.c