virtio: Net header needs hdr_len
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Feb 2008 04:50:01 +0000 (23:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:02 +0000 (23:50 +1100)
commit50c8ea8080700014872f2bbd7466d31ce0476290
tree8c863eb9ed295758a585e8f8f865faf9f6ba9302
parent24a5ae5d0340d5a45df840b24a10d62aa9516116
virtio: Net header needs hdr_len

It's far easier to deal with packets if we don't have to parse the
packet to figure out the header length to know how much to pull into
the skb data.  Add the field to the virtio_net_hdr struct (and fix the
spaces that somehow crept in there).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c
include/linux/virtio_net.h