]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ab2e8d6f907914ad1262ebd8f9fb5ef5dfa67d6
tree124550b8a817b65903116292ac471dece481e0c3
parent00b63988cc5198facbcbc9ca082b64d965c8c462
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: ec77103fb530 ("nfp: flower: compile Geneve encap actions")
Fixes: 1f1e8f73dc07 ("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