]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Notify drivers for listening UDP port changes
authorJoseph Gasparakis <joseph.gasparakis@intel.com>
Wed, 4 Sep 2013 09:13:38 +0000 (02:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2013 16:44:30 +0000 (12:44 -0400)
commitf577a0b986f50a695e75249354b30a0cf767eef2
treea3492c0373949048084213dc4bd02efd130aa5cf
parent9be454be90fa1ab2cb2ea48e583a87d16ed5d75b
vxlan: Notify drivers for listening UDP port changes

This patch adds two more ndo ops: ndo_add_rx_vxlan_port() and
ndo_del_rx_vxlan_port().

Drivers can get notifications through the above functions about changes
of the UDP listening port of VXLAN. Also, when physical ports come up,
now they can call vxlan_get_rx_port() in order to obtain the port number(s)
of the existing VXLAN interface in case they already up before them.

This information about the listening UDP port would be used for VXLAN
related offloads.

A big thank you to John Fastabend (john.r.fastabend@intel.com) for his
input and his suggestions on this patch set.

CC: John Fastabend <john.r.fastabend@intel.com>
CC: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Joseph Gasparakis <joseph.gasparakis@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/linux/netdevice.h
include/net/vxlan.h