From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 333C1A034C; Sun, 14 Aug 2022 15:20:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E972640698; Sun, 14 Aug 2022 15:20:08 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id C6DB140697 for ; Sun, 14 Aug 2022 15:20:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660483207; x=1692019207; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QaNe5UuqDSSbc2kop6kUzY7lOa4yBbL1jYfTNzYxxPI=; b=iRxmSLlwu4U6yQ2Y2sNqM++fCQhwogACBgxpx+km957Ghs9e27jeGgtQ mCOmuajmah9lnkzGs0RywHvFpjpJhr9R9QiUArd/2UcCX2ZLglfKcUEfQ jXTloYQmZ56dkTdcSdZeCiERMXvpdNXoKgjv0nnKLeYNoeiOkmjg/PKtb mYXimaHEId4c+/6DsZS9h5JMS5a3+cSVDRhahOpPExZAhcavgXwL/Iq6s xdhRWH2MUv0M4IMS4uVk2oNl0wRH/h4aTZh6uYSpWZoXX81/j7r75XVSR peB9q7Eaz01/CXfXb3QweFaSlgB3g/hKq+WP7BbzvEx2/IS//U3oT8dmf Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="289394000" X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="289394000" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 06:20:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="666372203" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.118.237]) by fmsmga008.fm.intel.com with ESMTP; 14 Aug 2022 06:20:02 -0700 From: Cheng Jiang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com, wenwux.ma@intel.com, yuanx.wang@intel.com, yvonnex.yang@intel.com, Cheng Jiang Subject: [RFC 0/2] vhost: add port mirroring function in the vhost lib Date: Sun, 14 Aug 2022 12:49:18 +0000 Message-Id: <20220814124920.14338-1-cheng1.jiang@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Similar to the port mirroring function on the switch or router, this patch set also implements such function on the Vhost lib. When data is sent to a front-end, it will also send the data to its mirror front-end. When data is received from a front-end, it will also send the data to its mirrorfront-end. Cheng Jiang (1): vhost: add egress API for port mirroring datapath Wenwu Ma (1): vhost: add ingress API for port mirroring datapath lib/vhost/rte_vhost_async.h | 26 +- lib/vhost/version.map | 5 + lib/vhost/vhost.h | 3 +- lib/vhost/virtio_net.c | 2755 ++++++++++++++++++++++++++--------- 4 files changed, 2101 insertions(+), 688 deletions(-) -- 2.35.1