]> git.baikalelectronics.ru Git - kernel.git/commit
llc: add support for SO_BINDTODEVICE
authorOctavian Purdila <opurdila@ixiacom.com>
Sat, 26 Dec 2009 11:51:01 +0000 (11:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Dec 2009 04:41:12 +0000 (20:41 -0800)
commit4ccc49b8d8c500735f0bc78eab37eabb1f891885
treee0e47b3f869119b7a2902e759a637021037738ae
parent11c3aeed3b29bec6de40ecd15be35792b8b1545f
llc: add support for SO_BINDTODEVICE

Using bind(MAC address) with LLC sockets has O(n) complexity, where n
is the number of interfaces. To overcome this, we add support for
SO_BINDTODEVICE which drops the complexity to O(1).

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/llc/af_llc.c