]> 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)
commit3ee1459f77fbed09f6b9303b80feb406c02615b5
tree5c92a234b104580270088b0c3ec243d7ad20f902
parentfc1e04dd6d3eae45f3ec3b2a8a2aa79dd9b194c8
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