]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: add second dif to udp socket lookups
authorDavid Ahern <dsahern@gmail.com>
Mon, 7 Aug 2017 15:44:16 +0000 (08:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 18:39:21 +0000 (11:39 -0700)
commit13e05d8b1a3143e9143f1332337c0dc4e3b6944d
tree5c92a234b104580270088b0c3ec243d7ad20f902
parent153dbe1e2507310bbceb68537d5e83a4c9e6b5d7
net: ipv4: add second dif to udp socket lookups

Add a second device index, sdif, to udp socket lookups. sdif is the
index for ingress devices enslaved to an l3mdev. It allows the lookups
to consider the enslaved device as well as the L3 domain when searching
for a socket.

Early demux lookups are handled in the next patch as part of INET_MATCH
changes.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/udp.h
net/ipv4/udp.c
net/ipv4/udp_diag.c