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 8F8D7429A2; Fri, 21 Apr 2023 03:44:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BB56410DD; Fri, 21 Apr 2023 03:44:29 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id A093F40E6E for ; Fri, 21 Apr 2023 03:44:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682041467; x=1713577467; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ww4vusGr/rFzVQcj/bz10Mi+bq85p+R2ju0eXRhFjpo=; b=GBGOFezs3pNHzDTnkL1tK6Y1HvHfzxTxHr//hglf6IXJjN0lL9rVTjq8 TfSy7QaEZWy3dXSDsuNgtPt3stX6JBBDU0OuR8AjzOFnbgRiIWxxSBrmC /xLY10MZ7G5+aVlSZn/3uzgGfiFI0Xahi3vQGFEjqCUbeb+29FTgr58lJ rI7Lhl0FkSbkA9tx0fMGVHeqb2HbLebrqLIWg8eZdypR8Zx98sRPhGv/E oqyAFib28cmaRAaCQCLUZszS9JQSxsEeM6JrXpzB2CDANsNgTQ47cvpF4 8j3lcKuVJaHY4x3eR7wBx/LjDQytvY5P5ElNMTpuFNuScLqn9JpWb9NUy A==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="334763675" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="334763675" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 18:44:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="669558549" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="669558549" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.139]) by orsmga006.jf.intel.com with ESMTP; 20 Apr 2023 18:44:24 -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, xingguang.he@intel.com, Cheng Jiang Subject: [PATCH 0/2] vhost: add port mirroring function in the vhost lib Date: Fri, 21 Apr 2023 01:09:30 +0000 Message-Id: <20230421010932.46847-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 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 mirror front-end. Cheng Jiang (2): vhost: add ingress API for port mirroring datapath vhost: add egress API for port mirroring datapath lib/vhost/rte_vhost_async.h | 17 + lib/vhost/version.map | 3 + lib/vhost/virtio_net.c | 1266 +++++++++++++++++++++++++++++++++++ 3 files changed, 1286 insertions(+) -- 2.35.1