devices: fix the l2 hdr offset in af_packet transmit side 19/37519/1
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 25 Oct 2022 19:23:51 +0000 (19:23 +0000)
committerMohsin Kazmi <sykazmi@cisco.com>
Tue, 25 Oct 2022 19:29:30 +0000 (19:29 +0000)
commit4561d6d251844b504a024d569de8d876203047ac
tree357dde8ee68ff6a8e6584f5f54415cd0ddb2ae60
parent4c89b189b2c712894764837a78e0a532bfe7e12f
devices: fix the l2 hdr offset in af_packet transmit side

Type: fix

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

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