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)
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>

No differences found