]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: allow to clear ttl inherit
authorHangbin Liu <liuhangbin@gmail.com>
Sat, 29 Sep 2018 15:06:29 +0000 (23:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Oct 2018 20:54:30 +0000 (13:54 -0700)
commit15e4538770ec8681c5adb3321c9b80022c1d9152
treecbc73752f924c835dee08e1e6a81e3c62c466d89
parent6e8a93ac1aec3b95af8721661948f1ba46f8bf56
geneve: allow to clear ttl inherit

As Michal remaind, we should allow to clear ttl inherit. Then we will
have three states:

1. set the flag, and do ttl inherit.
2. do not set the flag, use configured ttl value, or default ttl (0) if
   not set.
3. disable ttl inherit, use previous configured ttl value, or default ttl (0).

Fixes: 3db1f761e18ea ("geneve: add ttl inherit support")
CC: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c