]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: offload tos and tunnel flags for ipv4 udp tunnels
authorJohn Hurley <john.hurley@netronome.com>
Sat, 30 Jun 2018 00:04:41 +0000 (17:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 12:31:56 +0000 (21:31 +0900)
commit5823fc5dd8ec99bc7d64e231fde740ce57b2f68e
treeb57794e8962859e1d6779c974d77ad33e327f7c1
parent62d56fb7f1b01af8618e2b48b8942ee4ccfade02
nfp: flower: offload tos and tunnel flags for ipv4 udp tunnels

Extract the tos and the tunnel flags from the tunnel key and offload these
action fields. Only the checksum and tunnel key flags are implemented in
fw so reject offloads of other flags. The tunnel key flag is always
considered set in the fw so enforce that it is set in the rule. Note that
the compulsory setting of the tunnel key flag and optional setting of
checksum is inline with how tc currently generates ipv4 udp tunnel
actions.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@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