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 850CDA00C4; Thu, 18 Aug 2022 08:58:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7459340E2D; Thu, 18 Aug 2022 08:58:28 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id AA76A40DDC for ; Thu, 18 Aug 2022 08:58:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660805906; x=1692341906; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=X0TDYW48CPePn8llpzy3x2AI8tEiHmqgrTNgVwmTt+k=; b=n4hO6rhn/MnB27PoCr9akyqZs7Ro1izL/UEhoZtUoTDfHThAFfikwuJf 4DnDShjb6GcjHKCgDhbaHPJClIqt8VMl8r/rGKHfz8sGn8utu+UHUjU1m SZefwgfrix+jzD7QgNFtqTevsMhbksDix9Sv6eSUpBKM3M4tK224ug8KP stlntT/Zty4bWVTwt2MrlUCelmMfFUpnerizaUb2plWzDeqYILINhD+V6 sNnKthDbJ6YtYM9Jdzi1pObvK0SfhWnmLPWBZjvutbP7Wy479Bq7basdJ XhY9Am3UIWNVLfrxV7BDasqHVAVdPHBdWByZ/US6Y7/ciYNFTEpCmqHQH Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10442"; a="279648375" X-IronPort-AV: E=Sophos;i="5.93,245,1654585200"; d="scan'208";a="279648375" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 23:58:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,245,1654585200"; d="scan'208";a="675946498" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga004.fm.intel.com with ESMTP; 17 Aug 2022 23:58:24 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 17 Aug 2022 23:58:24 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 17 Aug 2022 23:58:23 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Wed, 17 Aug 2022 23:58:23 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.46) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.28; Wed, 17 Aug 2022 23:58:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cSW/RhdDGBCT0yGpt41v6kl3kPK3vCqPgftt0IgO9tVWXVfkGEr29COqcqMAyI2NrwbDHfN8zU2W9JtN+4UO4OruGH7e0QqGqnDjtiq3VSE7+Nh2zIMBBNXzhzageCtxjUCVpZuje+MotEZ43DnXPPdqiR+ywUJCa6FFF7AZluRsv8CP8a5fCHNbVZCKcxKLz3X5oQvXH5KWT6STbAQF3496mAuPIETiXikUevgDcRQ6rc9F+OqhwEcWc7cUAhoJQWnHWMjkTbFbyG/5OfllJ9M5WbN0UpBPS5dPpoyHP+ZnldfoUF5A/lgJYp+eK5pW7C3ewpLTCGwWOAqLKdgYtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X0TDYW48CPePn8llpzy3x2AI8tEiHmqgrTNgVwmTt+k=; b=Eb3SmmM6i9KkteW5v3jaOiU8h4TUDYxVJn7O60axasSuiASXK84ZS9mu+3WVDnln8tjEmXCl9OxDcU+yPRPur21D/gSodN6INr+R2uOT45tmKQDbXw8a2vhrKNMQExpm7hSQBosjFSAYSg3yrfTkSZH5JPgHoXaHN9U3cRER5TGuUbJ6zH1lqO+Um87XZKnmdmtZuWoO0wesW+1nVKJCyefN/bH88kPK5fwKdreJ5gvbhZXHfk2jRFTZ7MnluV01o+lm7kdsYDisOkEAm1D3uWLxg6qQSwuaMlwZi90xL+RdpQaQXsoFkQlLAlf9EqppTdxZORHMtx0dyHxL5OO94g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BL0PR11MB3187.namprd11.prod.outlook.com (2603:10b6:208:67::19) by BN6PR11MB1666.namprd11.prod.outlook.com (2603:10b6:405:4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Thu, 18 Aug 2022 06:58:21 +0000 Received: from BL0PR11MB3187.namprd11.prod.outlook.com ([fe80::249c:102:f840:f88b]) by BL0PR11MB3187.namprd11.prod.outlook.com ([fe80::249c:102:f840:f88b%7]) with mapi id 15.20.5504.027; Thu, 18 Aug 2022 06:58:21 +0000 From: "Jiang, Cheng1" To: Stephen Hemminger CC: "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "dev@dpdk.org" , "Hu, Jiayu" , "Ding, Xuan" , "Ma, WenwuX" , "Wang, YuanX" , "Yang, YvonneX" Subject: RE: [RFC 1/2] vhost: add ingress API for port mirroring datapath Thread-Topic: [RFC 1/2] vhost: add ingress API for port mirroring datapath Thread-Index: AQHYr+Caymx9q8Fff0G9onvJmp5qi62ufNsAgAPot0A= Date: Thu, 18 Aug 2022 06:58:21 +0000 Message-ID: References: <20220814124920.14338-1-cheng1.jiang@intel.com> <20220814124920.14338-2-cheng1.jiang@intel.com> <20220814075826.218f0e00@hermes.local> In-Reply-To: <20220814075826.218f0e00@hermes.local> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3d5d48c5-41ba-42a0-d878-08da80e709c7 x-ms-traffictypediagnostic: BN6PR11MB1666:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LVEkcBuwmUBBCdYxPSv8jThR0PiWx5HtTMiu6E+/cDAsc6RJpdPkPExIwXADpmrmbVNHVZjDPgvgQHxQZ3KcNiK7LzYy+ETlzQcpbIkVYPNGgXqNbAuWoaPaaesaAgAHWoUYugenXR74oPwXnaNsl8qoOH5IfybrkRf4HsVYfSfbey6yYimfM0AmeM9IFk6/GT1S1AC5g0kysUT/qrXKbo+hAgRaK5a3pG2o3keV8WfRuIkVYtNkhRA03QMG70P1rwDlelfhDRavAgCzuUVKH4BvtI8pyp9fe7N1/IQhbPjKJJPUWlnmktGwOkVgd2GrQR+R9M1bBAeo1Sj4H+BwT5XZqbsQn8qMnNcKTz7IFTVSgSDc2m7Ppx0kYJ4/k+LULj1SBSYEw7n+tLhbgRbM6JyBVsa2STbx7lb/pd2HBNtkUVEDp4xWXK5ZM+1/NfKsq6vz4LfDdrcCS9hbKP2TD7+CnzREZy7MtQEaF1GGQFCi92kc0SepuiYB2sjzqA9QB4lXFgJp15WteVNOa5hMIWvkR5TKjFEH/4NE9QZyVx3i1Q+h/qmxGfG6WD68OPGLNnwBzbHiAOBmN4t4l4ryiQGB1uaOgfH/IjugRYMOm48cWyCR0BPNk2eq2zHntgmVu3G5swMK2Gik8J/xqX0pETOKo1vvocjEhTr8dcr4xnMfV/Jms/v9i3sXFdunrb6bcvc77bvpIQkWf8ECPyFfKcOARZfKAZ5UkC2nF9xb3BNcnFIB//JreonjY0qyFnPJR/Xik3tsE7JYyXHKyhgTBQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3187.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(376002)(136003)(396003)(39860400002)(346002)(366004)(7696005)(6506007)(41300700001)(86362001)(186003)(38070700005)(33656002)(53546011)(83380400001)(71200400001)(9686003)(478600001)(26005)(66574015)(2906002)(66946007)(107886003)(316002)(66476007)(76116006)(8676002)(55016003)(54906003)(4326008)(64756008)(66556008)(5660300002)(82960400001)(6916009)(122000001)(8936002)(66446008)(38100700002)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0IEBeRo8H80g96usg5Y322BbeLYNKevUMGh09vgr/v3hsJDfkOi8x12ahJTT?= =?us-ascii?Q?1j6W87Edpfsohj66AbviYmPBXn/iU+Ri6eOZQaBLeXovOAL/pgMWX7x1KmiU?= =?us-ascii?Q?UZcL55F8PQqBGeHrD6ZUBrrD2u7TVjiAOaSzAANxu7lbcqrHCRcnH2bl7Cuq?= =?us-ascii?Q?iPQYGll4flC/vC/rgZI2PHS5No1l2se4xt7y7Zn7yX4B59GGNnEmveyQtuyI?= =?us-ascii?Q?z89oifEzHoQHwnFpYFb8SSz13ogTa1LXKpbGFYUut7QTn0m7p3je4WM63dud?= =?us-ascii?Q?D6fMedVdEVTqzMt9VQQBtVTAY2EehQmfThPuIuKKgao1ma7Mp0QpHnOBrTRC?= =?us-ascii?Q?5RCaFDMBTHV5S/WjXGdFNI3mftRHqmFAlrg5nbCXEB2uVg7yRETxJnTZjNiT?= =?us-ascii?Q?V4751zStK/xCjH+oIyY9K+C7FfkW9muBsZjySggMO96hjrCrlRsttGbnoukN?= =?us-ascii?Q?q0ugsaIAI4ChJvhizRDVGzEG//zQ39p9kQzFA7iAcRi2ZPMw75kwiumJrjWX?= =?us-ascii?Q?RCBK2FNKNxmCdLYMrDXZ5lw0lO+szqgog0xmywJKD5xrRLnggtWyYzSuPK61?= =?us-ascii?Q?GKTzHj86xY4O4E9qYUa+o15om1SVx+NJ5rCDlh11dNXDLodeb3BwM4N3Ohzs?= =?us-ascii?Q?9gqg0fxC3jfix5gr0z0LR6g71p/n0nJHEI56wvJwOCVC02RmFkbHz5pRtmfa?= =?us-ascii?Q?x68h+KpwtIVsEvT40XeNKi62h+/Ww9dvnIOzT08/ezhI069jfXU3dPDuPJrE?= =?us-ascii?Q?PRBcJWNF2FfMSJ5q3xI6nswNaOPeWVn4tIFwTIK1FUMDYoyBDszU6ZrJVfpX?= =?us-ascii?Q?55dEHnLA0FrkIY17e9pt0L2DgR8roudX21pGqLWOAjPGueente516XzESXvX?= =?us-ascii?Q?osFfZpf1FYRH1ic1wURMaMilP36NB9oEvpSNi6Ufrv9s1DFbQSDftCx0W1cL?= =?us-ascii?Q?e0b28mgO8kN3LviQHbVXKA6UxqVsCciK12sz5p+pyKJCdAuFbmO95B5KDB0b?= =?us-ascii?Q?OrI0ZvGWbLqnaigKYOKnANAVwah2fx/7IMIfdP40w+FVnbv/c+/Bqqv1L7aJ?= =?us-ascii?Q?Ci1vhtysy0nf1fDNZWT4Tgmfvsvu7Icv948svFrhCEtsi4ojoMKmzemZYa39?= =?us-ascii?Q?fNaGZz9EqTmbhaD/xXUHbuRzifDY4ME5BzY98NW1yiSROVC41ecywJp+Wzjn?= =?us-ascii?Q?Msa5yNXdYka/VHrAXIkiKnmHc/TllyWANcEy9RGFsx9DGG0QcFRdcuxrDQJv?= =?us-ascii?Q?QAyf0CeqIi4tmghA7c6KrX5z1avuu9m8LpbzUftx/1Wr4hRaJ2fpOvyDNdwo?= =?us-ascii?Q?oSVR2o7ijhXtBoUrz+mW/W/xFr/PBLmvnjKS7nC8gl81vSJDtDcjgRmlA/av?= =?us-ascii?Q?5AjwtPGPeQUPVuSCo9jRb90B2UCDZzrPEagnsLKk+Bi/n/PyYLgxjTZte9UL?= =?us-ascii?Q?17hUr6XjpmDsABMWHVYsJCpUfsPjKpdVvUKwO1NrWhjppMy1SHO8rMbP+fbA?= =?us-ascii?Q?iUnJZJOgixJ3y1MC8Zm6NPJikfCzXICExlW4IcHKVvI7U+3B8+U0CudjqYzp?= =?us-ascii?Q?H3UCTx2VNCiJnE/jcFBIrmtA4IxIj7F0qHUEnVFL?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3187.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d5d48c5-41ba-42a0-d878-08da80e709c7 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2022 06:58:21.5926 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7TLUqxG6fwXbSl3Wz7hp7ixyMz5fgXQ1H0RY19vrhHnG0juuAfcXmlP7WOojo3RqDJKXqlJhJdm8x7JrI5747w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1666 X-OriginatorOrg: intel.com 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 Hi, > -----Original Message----- > From: Stephen Hemminger > Sent: Sunday, August 14, 2022 10:58 PM > To: Jiang, Cheng1 > Cc: maxime.coquelin@redhat.com; Xia, Chenbo ; > dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Wang, > YuanX ; Yang, YvonneX > Subject: Re: [RFC 1/2] vhost: add ingress API for port mirroring datapath >=20 > On Sun, 14 Aug 2022 12:49:19 +0000 > Cheng Jiang wrote: >=20 > > From: Wenwu Ma > > > > Similar to the port mirroring function on the switch or router, this > > patch also implements an ingress function on the Vhost lib. When data > > is sent to a front-end, it will also send the data to its mirror > > front-end. > > > > Signed-off-by: Cheng Jiang > > Signed-off-by: Wenwu Ma >=20 > We already have rte_flow, packet capture, and rx/tx callbacks. > This seems like re-invention. Sorry that I didn't make it clear in the v1 commit message. This port mirro= r function is based on async vhost which is accelerated by DMA device. Comp= ared with other mirror implements: 1. It's targeted for vhost. 2. The perfo= rmance is really good. Its use scenario is to let one front-end(mirror-VM) = monitor the traffic of another front-end(VM). It's different from the thing= s you mentioned above. So, IMO I don't think it's re-invention. Thanks, Cheng