diff options
| author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-10-07 05:45:57 +0000 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-10-18 23:33:44 -0400 |
| commit | 09df57ca604512b29b6096afb381c839ccbd2912 (patch) | |
| tree | d7a820fea1ef93ad5a2e8ba74926b85b451428cb /net/ipv4/tcp_output.c | |
| parent | bc416d9768aa9a2e46eb11354a9c58399dafeb01 (diff) | |
| download | olio-linux-3.10-09df57ca604512b29b6096afb381c839ccbd2912.tar.xz olio-linux-3.10-09df57ca604512b29b6096afb381c839ccbd2912.zip | |
l2tp: give proper headroom in pppol2tp_xmit()
pppol2tp_xmit() calls skb_cow_head(skb, 2) before calling
l2tp_xmit_skb()
Then l2tp_xmit_skb() calls again skb_cow_head(skb, large_headroom)
This patchs changes the first skb_cow_head() call to supply the needed
headroom to make sure at most one (expensive) pskb_expand_head() is
done.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions