gre: Fix headroom calculation.
authorJesse Gross <jesse@nicira.com>
Tue, 13 Jul 2010 00:40:38 +0000 (17:40 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 13 Jul 2010 21:18:10 +0000 (14:18 -0700)
commit21256fabfe5e4eeeebd58c74d6f622133b722708
treef73cc851ed30a53fba302ae91e9a8d7e1c749b76
parent38aeef15d85c8f7a590ebf3daaeb3f4d72d414a4
gre: Fix headroom calculation.

If we need to make a copy we add a little bit extra to the headroom
that we think we need in order to avoid future copies.  Previously we
would always just allocate max(headroom, 64) which is generally
enough space.  However, if we are using IPsec our expected headroom
is large and there is no extra.  Instead, it is better to just tack on
a few extra bytes so we'll always have a cushion.
datapath/vport-gre.c