net: geneve: support IPv4/IPv6 as inner protocol
authorEyal Birger <eyal.birger@gmail.com>
Wed, 16 Mar 2022 06:15:57 +0000 (08:15 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 17 Mar 2022 11:36:32 +0000 (12:36 +0100)
commit435fe1c0c1f74b682dba85641406abf4337aade6
tree3ccd6bdde65358dcd007f209796270bd1d7f63a6
parent82192c49f343a80b790783086de3c42e1f2bbd45
net: geneve: support IPv4/IPv6 as inner protocol

This patch adds support for encapsulating IPv4/IPv6 within GENEVE.

In order to use this, a new IFLA_GENEVE_INNER_PROTO_INHERIT flag needs
to be provided at device creation. This property cannot be changed for
the time being.

In case IP traffic is received on a non-tun device the drop count is
increased.

Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Link: https://lore.kernel.org/r/20220316061557.431872-1-eyal.birger@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/geneve.c
include/uapi/linux/if_link.h