af-packet: Use existing netdev reference for bound sockets.
authorBen Greear <greearb@candelatech.com>
Wed, 1 Jun 2011 07:18:53 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jun 2011 21:16:28 +0000 (14:16 -0700)
commit827d978037d7d0bf0860481948c6d26ead10042f
treeddd6f73b342116f330694528d993a2fa373b3b36
parent160ff18a07f3a505d452dcced8e45ecdd0a85506
af-packet: Use existing netdev reference for bound sockets.

This saves a network device lookup on each packet transmitted,
for sockets that are bound to a network device.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c