]> 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)
commit3e8bbaeac4028446449052fcfdfd3f493d89387e
treeb57794e8962859e1d6779c974d77ad33e327f7c1
parent3dc0f422e17cf22565765fd6ba27b8175ffd6249
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