From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 0EC0C237 for ; Mon, 4 Dec 2017 06:25:47 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2017 21:25:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,357,1508828400"; d="scan'208";a="8731714" Received: from dpdk-xiao-1.sh.intel.com ([10.67.110.153]) by FMSMGA003.fm.intel.com with ESMTP; 03 Dec 2017 21:25:45 -0800 From: Xiao Wang To: yliu@fridaylinux.org Cc: dev@dpdk.org, tiwei.bie@intel.com, stephen@networkplumber.org, Xiao Wang Date: Mon, 4 Dec 2017 06:02:06 -0800 Message-Id: <1512396128-119985-1-git-send-email-xiao.w.wang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1511521440-57724-2-git-send-email-xiao.w.wang@intel.com> References: <1511521440-57724-2-git-send-email-xiao.w.wang@intel.com> Subject: [dpdk-dev] [PATCH v2 0/2] net/virtio: support GUEST ANNOUNCE 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: Mon, 04 Dec 2017 05:25:48 -0000 When live migration is finished, the backup VM needs to proactively announce its new location. DPDK vhost has implemented VHOST_USER_PROTOCOL_F_RARP to generate a RARP packet to switch in dequeue path. Another method is to let the guest proactively send out RARP packet using VIRTIO_NET_F_GUEST_ANNOUNCE feature. This patch set enables this feature in virtio pmd, to support VM running virtio pmd be migrated without vhost supporting RARP generation. v2: - Use spaces instead of tabs between the code and comments. - Remove unnecessary parentheses. - Use rte_pktmbuf_mtod directly to get eth_hdr addr. - Fix virtio_dev_pause return value check. Xiao Wang (2): net/virtio: make control queue thread-safe net/virtio: support GUEST ANNOUNCE drivers/net/virtio/virtio_ethdev.c | 138 ++++++++++++++++++++++++++++++++++++- drivers/net/virtio/virtio_ethdev.h | 4 ++ drivers/net/virtio/virtio_pci.h | 1 + drivers/net/virtio/virtio_rxtx.c | 82 ++++++++++++++++++++++ drivers/net/virtio/virtio_rxtx.h | 1 + drivers/net/virtio/virtqueue.h | 11 +++ 6 files changed, 234 insertions(+), 3 deletions(-) -- 1.8.3.1