nfp: flower: set tunnel ttl value to net default
authorJohn Hurley <john.hurley@netronome.com>
Tue, 1 May 2018 22:49:49 +0000 (15:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 22:59:57 +0000 (18:59 -0400)
commit50a5852a657f793a8482fe3af4a141b460d3499e
tree124550b8a817b65903116292ac471dece481e0c3
parentc212d2c7fc4736d49be102fb7a1a545cdc2f1fea
nfp: flower: set tunnel ttl value to net default

Firmware requires that the ttl value for an encapsulating ipv4 tunnel
header be included as an action field. Prior to the support of Geneve
tunnel encap (when ttl set was removed completely), ttl value was
extracted from the tunnel key. However, tests have shown that this can
still produce a ttl of 0.

Fix the issue by setting the namespace default value for each new tunnel.
Follow up patch for net-next will do a full route lookup.

Fixes: 3ca3059dc3a9 ("nfp: flower: compile Geneve encap actions")
Fixes: b27d6a95a70d ("nfp: compile flower vxlan tunnel set actions")
Signed-off-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/action.c
drivers/net/ethernet/netronome/nfp/flower/cmsg.h