]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Only bind to sockets with compatible flags enabled
authorThomas Graf <tgraf@suug.ch>
Thu, 15 Jan 2015 02:53:56 +0000 (03:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2015 06:11:41 +0000 (01:11 -0500)
commit2bc99aa161d7f0545cde9573872873ca72ab4ee9
treec6485d636e3d8a25a4ead7fd1e6520286816fdfb
parentcb3e601cc94dd9d614072eccc59dce588a86a81e
vxlan: Only bind to sockets with compatible flags enabled

A VXLAN net_device looking for an appropriate socket may only consider
a socket which has a matching set of flags/extensions enabled. If
incompatible flags are enabled, return a conflict to have the caller
create a distinct socket with distinct port.

The OVS VXLAN port is kept unaware of extensions at this point.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h