datapath: Allow minimum headroom to be set when copying buffers.
authorJesse Gross <jesse@nicira.com>
Wed, 18 Nov 2009 03:03:27 +0000 (19:03 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 18 Nov 2009 21:51:55 +0000 (13:51 -0800)
commit0cd8a05ec036ca8f950d4d4034a80bf485581b6a
treef900560d8fc42051bcbb5f62460a25270efc0093
parent5ef800a6909fabfb2331a2da90450c23ca61aa06
datapath: Allow minimum headroom to be set when copying buffers.

If we need to copy an sk_buff in order to make it writable, allow
the minimum headroom to be specified.  This ensures that if we
need to add additional data, such as a VLAN tag, we will not have
to make a second copy.

Solves bug #2197 in certain situations.
datapath/actions.c
datapath/actions.h