]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ce8b8a892155b40b482e48f893756bd472a4207
tree98b7cbd44e9b62924ff9b74f4935daa2e543674e
parentf1505026125742ab78c679acd62e6f3d2830897a
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