dpdk: patch broken virtio macro 90/29990/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 18 Nov 2020 19:40:31 +0000 (13:40 -0600)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 25 Nov 2020 10:51:09 +0000 (10:51 +0000)
commit45d60492a425def70e2ee64de6c36327be429479
tree7517c4e68cfebe82002c9ceaa87d33d2228e3f09
parent3ef653aa886e6a07afba106b4f03c40e392e1307
dpdk: patch broken virtio macro

Type: fix

In DPDK 20.08, the macro ASSIGN_UNLESS_EQUAL(), which is defined in the
virtio PMD code, is broken. It does not actually set the variable that is
passed in to the value that is passed in. It just assigns the value
to a local variable that it declares. This results in
virtqueue_clear_net_hdr() failing to clear the fields in the virtio
net header. This can cause packets which were sent over an IPsec tunnel
and are subsequently transmitted on a virtio interface to have garbage
in the virtio net header.

Apply a post-20.08 patch from upstream to fix it.

Change-Id: Ic53e89d859db628e26a3c1988e53b626fede94d7
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
build/external/patches/dpdk_20.08/0001-net-virtio-fix-variable-assignment-in-helper-macro.patch [new file with mode: 0644]