net/virtio: fix variable assignment in helper macro
authorVipul Ashri <vipul.ashri@oracle.com>
Fri, 18 Sep 2020 09:55:04 +0000 (15:25 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:12 +0000 (18:55 +0200)
commita1412e05caa2678757156d4de2755ab5140ecc24
tree5a47688265e97d07fe58ca3acb4f29d68033184f
parent4fb86eb5e8971c609d98112a8dae9e5703bf4b61
net/virtio: fix variable assignment in helper macro

Inside Macro ASSIGN_UNLESS_EQUAL(var, val), assignment to var is always
failing as assignment done using var_ having local scope only.
This leads to TX packets not going out and found broken due to cleanup
malfunctioning. This patch fixes the wrong variable assignment.

Fixes: 57f90f894588 ("net/virtio: reuse packed ring functions")
Cc: stable@dpdk.org
Signed-off-by: Vipul Ashri <vipul.ashri@oracle.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtqueue.h