DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/vhost: fix sending arp packet to self
@ 2017-12-29 10:14 Junjie Chen
  2017-12-29  6:27 ` Yang, Zhiyong
  2017-12-29 14:33 ` [dpdk-dev] [PATCH v2] " Junjie Chen
  0 siblings, 2 replies; 5+ messages in thread
From: Junjie Chen @ 2017-12-29 10:14 UTC (permalink / raw)
  To: yliu, maxime.coquelin; +Cc: dev, Junjie Chen

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

Signed-off-by: Junjie Chen <junjie.j.chen@intel.com>
---
 examples/vhost/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 89a61f0..10a7f5d 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -964,7 +964,8 @@ virtio_tx_route(struct vhost_dev *vdev, struct rte_mbuf *m, uint16_t vlan_tag)
 		struct vhost_dev *vdev2;
 
 		TAILQ_FOREACH(vdev2, &vhost_dev_list, global_vdev_entry) {
-			virtio_xmit(vdev2, vdev, m);
+			if (vdev2 != vdev)
+				virtio_xmit(vdev2, vdev, m);
 		}
 		goto queue2nic;
 	}
-- 
2.0.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-08 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-29 10:14 [dpdk-dev] [PATCH] examples/vhost: fix sending arp packet to self Junjie Chen
2017-12-29  6:27 ` Yang, Zhiyong
2017-12-29  6:52   ` Chen, Junjie J
2017-12-29 14:33 ` [dpdk-dev] [PATCH v2] " Junjie Chen
2018-01-08 14:14   ` Yuanhan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).