examples/vhost: fix sending ARP packet to self
authorJunjie Chen <junjie.j.chen@intel.com>
Fri, 29 Dec 2017 14:33:19 +0000 (09:33 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commita3fdb53270d4359fc8fe1d1faedd737024d10548
treee1ded5c94d2fc1b1c73b4f2e914b49ea1912335d
parent6c299bb7322fc7c506389a951a2500a92ba9253e
examples/vhost: fix sending ARP packet to self

ARP packets are not dropped when dest vdev is itself, which breaks
RX ring inconspicuously.

Fixes: 9c5ef51207c6 ("examples/vhost: handle broadcast packet")
Cc: stable@dpdk.org
Signed-off-by: Junjie Chen <junjie.j.chen@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
examples/vhost/main.c