From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CEE9AFE5 for ; Fri, 31 Mar 2017 13:44:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490960652; x=1522496652; h=from:to:cc:subject:date:message-id; bh=Ec4Ai/DXnsdAwBNfhvFzReMtMwhtG1Xu3bK6Vk42BNE=; b=wEImpefYKyjWoB27mIHmB89CPomLMBnCyI5evwgUo00rmjSzOeziooub Pu7OwpgHdgiqGO4d6PnoCFV9OD/CLw==; Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Mar 2017 04:44:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,251,1486454400"; d="scan'208";a="1149238569" Received: from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.182]) by fmsmga002.fm.intel.com with ESMTP; 31 Mar 2017 04:44:07 -0700 From: Zhiyong Yang To: dev@dpdk.org Cc: yuanhan.liu@linux.intel.com, maxime.coquelin@redhat.com Date: Fri, 31 Mar 2017 19:40:17 +0800 Message-Id: <1490960419-16779-1-git-send-email-zhiyong.yang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 0/2] net/virtio: support to turn on/off the traffic flow 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, 31 Mar 2017 11:44:12 -0000 Current dpdk code virtio_dev_stop only disables interrupt and marks link down, When it is invoked, tx/rx traffic flows still work. This is a strange behavior. The patchset supports the switch of flow by calling virtio_dev_start/stop. The implementation refers to vhost pmd. Zhiyong Yang (2): net/virtio: add data elements to turn on/off traffic flow net/virtio: support to turn on/off the traffic flow drivers/net/virtio/virtio_ethdev.c | 37 +++++++++++++++++++++++++++- drivers/net/virtio/virtio_pci.h | 1 + drivers/net/virtio/virtio_rxtx.c | 12 +++++++++ drivers/net/virtio/virtio_rxtx.h | 6 +++++ drivers/net/virtio/virtio_rxtx_simple.c | 4 +++ drivers/net/virtio/virtio_rxtx_simple_neon.c | 5 +++- drivers/net/virtio/virtio_rxtx_simple_sse.c | 5 +++- drivers/net/virtio/virtio_user_ethdev.c | 1 + 8 files changed, 68 insertions(+), 3 deletions(-) -- 2.7.4