virtio: use current_data as l2_hdr_offset 20/37520/1
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 25 Oct 2022 19:27:08 +0000 (19:27 +0000)
committerMohsin Kazmi <sykazmi@cisco.com>
Tue, 25 Oct 2022 19:29:33 +0000 (19:29 +0000)
commit5efc0cdf48e45ff457c5ddead157165b725e78f3
treede7de09422934a36d73a0564aa75130dac39e998
parent4561d6d251844b504a024d569de8d876203047ac
virtio: use current_data as l2_hdr_offset

Type: fix

virtio transmit node uses header offsets to set the
appropriate metadata for packet with offloads. But
l2_hdr_offset is not correctly set by previous node(s).
This patch makes use of curren_data field as l2_hdr_offset.

Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: Id2f41a7650be45c9cc1ebacc7bec298be79bf218
src/vnet/devices/virtio/device.c