nfp: flower: compile Geneve encap actions
authorJohn Hurley <john.hurley@netronome.com>
Tue, 19 Dec 2017 16:58:29 +0000 (17:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 19:52:13 +0000 (14:52 -0500)
commit3ca3059dc3a970f2a731632ee5851536dac6149c
tree9d1482da2ddc255b7e280e7c9d22a0e350ad13cb
parentbedeca15afd8f0a2d3ad3a76830b3f6525a2aeeb
nfp: flower: compile Geneve encap actions

Generate rules for the NFP to encapsulate packets in Geneve tunnels. Move
the vxlan action code to generic udp tunnel actions and use core code for
both vxlan and Geneve.

Only support outputting to well known port 6081. Setting tunnel options
is not supported yet.

Only attempt to offload if the fw supports Geneve.

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