OSDN Git Service

virtio_net: clarify tailroom logic
authorMichael S. Tsirkin <mst@redhat.com>
Sat, 9 Oct 2021 14:52:50 +0000 (10:52 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 08:29:47 +0000 (04:29 -0400)
commitfc02e8cb0300c0146e1d4668a75663eb225d8182
tree98b7cbd44e9b62924ff9b74f4935daa2e543674e
parent8bb7eca972ad531c9b149c0a51ab43a417385813
virtio_net: clarify tailroom logic

Make tailroom math follow same logic as everything else, subtracing
values in the order in which things are laid out in the buffer.

Tested-by: Corentin Noël <corentin.noel@collabora.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c