From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 573BBE5D for ; Fri, 29 Dec 2017 07:52:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Dec 2017 22:52:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,474,1508828400"; d="scan'208";a="5936662" Received: from dpdk-dev.sh.intel.com ([10.67.111.147]) by fmsmga008.fm.intel.com with ESMTP; 28 Dec 2017 22:52:54 -0800 From: Junjie Chen To: zhiyong.yang@intel.com, yliu@fridaylinux.org, maxime.coquelin@redhat.com Cc: dev@dpdk.org, Junjie Chen Date: Fri, 29 Dec 2017 09:33:19 -0500 Message-Id: <1514557999-151167-1-git-send-email-junjie.j.chen@intel.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1514542463-146522-1-git-send-email-junjie.j.chen@intel.com> References: <1514542463-146522-1-git-send-email-junjie.j.chen@intel.com> Subject: [dpdk-dev] [PATCH v2] examples/vhost: fix sending arp packet to self X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 06:52:56 -0000 ARP packets are not dropped when dest vdev is itself, which breaks RX ring inconspicuously. Fixes: 9c5ef51207c6 ("examples/vhost: handle broadcast packet") Signed-off-by: Junjie Chen --- v2: - Add fixline in commit message. 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