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)
commita504b86e718a425ea4a34e2f95b5cf0545ddfd8d
tree5feeeab10c80b49323477545513e70bae97dee84
parent7625eb2f2fff7bfae41d3119b472c20b48874895
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