nfp: flower: set ip tunnel ttl from encap action
authorJohn Hurley <john.hurley@netronome.com>
Tue, 7 Aug 2018 15:35:58 +0000 (17:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 19:22:14 +0000 (12:22 -0700)
commit2a43747147699c6187d8508b40a28a50f42b0ee5
tree4caea8d0187e252e96beee37d93412f6c8d485a9
parent50ee42b9ccb39c7a5c41eaae3199675a6ced9d49
nfp: flower: set ip tunnel ttl from encap action

The TTL for encapsulating headers in IPv4 UDP tunnels is taken from a
route lookup. Modify this to first check if a user has specified a TTL to
be used in the TC action.

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