]> git.baikalelectronics.ru Git - kernel.git/commit
tun: reserves space for network in skb
authorstephen hemminger <shemminger@vyatta.com>
Wed, 8 Jun 2011 14:33:07 +0000 (14:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2011 07:08:38 +0000 (00:08 -0700)
commita2abad5ba1b75f034708c372066d724606325418
tree5feeeab10c80b49323477545513e70bae97dee84
parent76259c568041919fe9f59da29dfd9a5f8b890356
tun: reserves space for network in skb

The tun driver allocates skb's to hold data from user and then passes
the data into the network stack as received data. Most network devices
allocate the receive skb with routines like dev_alloc_skb() that reserves
additional space for use by network protocol stack but tun does not.

Because of the lack of padding, when the packet is passed through bridge
netfilter a new skb has to be allocated.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c