virtio-net: pack headroom into ctx for mergeable buffers
authorJason Wang <jasowang@redhat.com>
Wed, 19 Jul 2017 08:54:46 +0000 (16:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 20:37:00 +0000 (13:37 -0700)
commit28b39bc7c57e7920b0cbba3d79ba0f134e0f76f0
treea4bed026811bd43897d5563a0523dd97d812be90
parent87646a348ebcb1415a479be31f1c41f276e057e6
virtio-net: pack headroom into ctx for mergeable buffers

Pack headroom into ctx - this way when we get a buffer we can figure out
the actual headroom that was allocated for the buffer. Will be helpful
to optimize switching between XDP and non-XDP modes which have different
headroom requirements.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c