]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitabf9d537fea225af60762640361af7fb233b3103
treee0e47b3f869119b7a2902e759a637021037738ae
parente5cd6fe391aa8c93560bb7ffdfe334cf4d0a02e4
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