• Joseph Gasparakis's avatar
    vxlan: Notify drivers for listening UDP port changes · 53cf5275
    Joseph Gasparakis authored
    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: default avatarJoseph Gasparakis <joseph.gasparakis@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    53cf5275
vxlan.c 66.9 KB