From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A11BCA052B; Fri, 31 Jul 2020 04:34:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4994310A3; Fri, 31 Jul 2020 04:34:23 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 971DCA69 for ; Fri, 31 Jul 2020 04:34:21 +0200 (CEST) IronPort-SDR: PrhrxMq9PdYH/TJGO1MQxUH5UF6faYl1WwUMD74QaShUS642KmsRRcPfVaQ20JhIiptEPv9E+i XM5CXkBb5MUw== X-IronPort-AV: E=McAfee;i="6000,8403,9698"; a="131289603" X-IronPort-AV: E=Sophos;i="5.75,416,1589266800"; d="scan'208";a="131289603" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2020 19:34:20 -0700 IronPort-SDR: ley6IrywS+wFsuE1xSse2vSyjf20yQGJQ2SQVlCBjik4U+NSvcSGPl+hVB9CqVY6X+BDfwJwot Y4UHx5EOhj7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,416,1589266800"; d="scan'208";a="287054192" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga003.jf.intel.com with ESMTP; 30 Jul 2020 19:34:18 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 30 Jul 2020 19:34:18 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 30 Jul 2020 19:34:18 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 30 Jul 2020 19:34:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ln3C100A0l30uBO0kMEcocW67va45bjhAxBhNN2DsHKuK534G0unRf4JLpUY4Q+nENjF9uWYcwlW/GAkftUgj0J8S2iU6kTMFbaju3S4j72FCVhZlKMJBZUM9SFp4ubA2bVy0q4NR4kreAuU7eTVrF5R6nU7GLY1auxmYl7EEq9aeO9mWOl/OEnKVwe3IGycb9weAPIbGrHFFwL+jw9CVo14YjPo2W4gaYwTSXt9IpTgqeKuR9Zy5D9qoAiHurVXvuuuFsl7hzuagDZCftSuBMF58FWXOQmQtFVVOYFrqIiNMu4/w4QK6Ws5qM2/6fZa8Olopof8qSZQXLzLko27bQ== 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-SenderADCheck; bh=+kcSRhxr+W3lNyDTvtZ97Cm5cHn0uUUkXccyHPQRaB8=; b=V4hXEty2U50fZkNCGojL7FlxkBeUP+OA+MtJ40mcTXbhCCXKzKU2ru24EkC5zjDCS+mYerR91OSZP2HPc8MRvW81gsKIc2VgmTTR5/fLWoqlcfWjbJt5EKZYW+MUTNCl6b1WEaptpo4Xa+kNzwcgOp0QW2NjnJLHdjNhOkGSx1uSUV/VAwKgKZC+XhqS8kWsDlqVgdfkUH9LBWJnC3HBv6lScCROF3NMFGKCt9KFqsRo0LKbmfYYUQJ8cDnXCl08wH72iSCkrupTOKCu6iuJ1KhGhhGTQTOnRDA2gSkDZB0LUja0lEaHGHC7pGT8bRP86GJajCuBd92CnJT+pdEkvw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+kcSRhxr+W3lNyDTvtZ97Cm5cHn0uUUkXccyHPQRaB8=; b=U1cGYESa/s+xT9eHDqnBvS3RD/xw0IGY4pFrDgEyMC1by2yhWYMnv4kFaia9iNm+pm3yZfrmVEdTczTZcs/mARSxZRy8tbTQSqJcdak5hLoJ0/rFbsnTXW6nyeO00W/hD6Fyu7dWuMdpyZSGmedLP6mJzco/4MebSW1FTpLK+TU= Received: from DM5PR1101MB2169.namprd11.prod.outlook.com (2603:10b6:4:51::14) by DM6PR11MB4379.namprd11.prod.outlook.com (2603:10b6:5:1db::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.16; Fri, 31 Jul 2020 02:34:14 +0000 Received: from DM5PR1101MB2169.namprd11.prod.outlook.com ([fe80::d96a:61:33a9:9036]) by DM5PR1101MB2169.namprd11.prod.outlook.com ([fe80::d96a:61:33a9:9036%12]) with mapi id 15.20.3216.033; Fri, 31 Jul 2020 02:34:14 +0000 From: "Fu, Patrick" To: Thomas Monjalon CC: "dev@dpdk.org" , "Yigit, Ferruh" , "maxime.coquelin@redhat.com" , "Richardson, Bruce" , "Wang, Zhihong" , "Wang, Liang-min" , "Ananyev, Konstantin" , "Miskell, Timothy" , "Liang, Cunming" , "arybchenko@solarflare.com" , Jiawei Wang , "orika@mellanox.com" Thread-Topic: [dpdk-dev] [RFC] lib: introduce traffic mirroring API Thread-Index: AQHWZiF3IJZ9qRZiv0KvK1buvU246Kkfqj0AgAFLa+A= Date: Fri, 31 Jul 2020 02:34:13 +0000 Message-ID: References: <20200730032332.3742259-1-patrick.fu@intel.com> <9050775.XvCxKblxuy@thomas> In-Reply-To: <9050775.XvCxKblxuy@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.207] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a07e468c-bd39-44e8-c9d2-08d834fa3701 x-ms-traffictypediagnostic: DM6PR11MB4379: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /JQBe8de4gqbZSR9mUksdOFJYKD1wwsW1jWFG09vMKsADP8nY8IaKLRmu/twKyjIfya2nQzPIiawnuVP+yn80MsXNBO7y9v5Sw866SfcQi5Pt/1mIVSHOAP4xJF/irlkjMxhVkE7/8o4Gv8NJWbRvHdenosen/lqHDKFr7NhxjIbWm4a75sNf3FGPHe1LcnquDJwwOkLQm4ApZH7HbM6obBK0rg6JyyW6EUpcifXgghALLrOdG//NlMo6Zw3760OqJccpCIyn2zo7LMFEiqeMBGBEe7NmythpWdcObHdnwXEMBuGfrXG3yzaxqXRukqQ0gzDyaglo6Q6vCDNAjh7LOGaHcGCSyJbdit2cEiWgjGamQbfDV/aIhwpzaQcFsL4Sntlsp3GORktLbohbplpug== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR1101MB2169.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(376002)(366004)(346002)(136003)(478600001)(26005)(186003)(966005)(71200400001)(54906003)(66446008)(7696005)(76116006)(5660300002)(316002)(86362001)(6506007)(66946007)(66476007)(66556008)(64756008)(55016002)(9686003)(53546011)(2906002)(8936002)(33656002)(4326008)(8676002)(6916009)(83380400001)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: RWcVsgLlwTyDJ4T+Hi5a2iFCKeSB+qudL/zbFUZ2s1Nm8104eMQNvcVG0Jm3291B3KbtlK+yYRTi62zFRKXoGNN6mcYo4PGrV/N5xc2/4bQRPcB6uDzQ7Kdv6bdX/qZu4HSb379UD8MvIFtKirG59ue3SlQNRgnBdOLYXzg82+6bJC40VQJbiI1qg/JHRSUlNpcuv09URyGyGI9svU0r1ZJLEw6VZ3ytqRotxKYGWdKabvr3NOhP8x7Dw1CC+H8e4gZ6mQL5pZ+lF3rmP1RmykeYqH5JOJ9HJJT3IUTrMIEeXNhsL+wdewHkvVgluhKap09pjUE+wBJnPsDZiMCYnkRK4BtvbkIhnkFrfdVa+WSogusdd6AJVENft8K7t3fv/IcD0EZRZygeRI30E0dvZsg70WMQrEeMX6tuIDtdm3ToaVTWPAhiAhUhsA14Nw3kAUumiPRBv4EjS3aneQxrp4AniCIPN9OvZ0MVFjqoPuobbozKoxmf2MCP4JvktT92qSBYlycgyi/n1ERrZLGtwyPAxq6NsatSiZ7mmoQXPWohQtkHW4qpBTOHpv8+uYqOUHpYIHXDdmnlaM77bX+xroQZJwWGPZ9Bsfvri/YkR6JZvsW81N7ccN21hylLhVQ3EEb5L8ESxJo1KoJy6ciPJA== 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: DM5PR1101MB2169.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a07e468c-bd39-44e8-c9d2-08d834fa3701 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2020 02:34:13.9648 (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: uGxw6Thh/+eLBejDu19GW0o7zpRdEQSbUU2ONFAxvuOBihDSzt/hibJXg5OHSbF12leJMne/aGwyM872FQAiXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4379 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [RFC] lib: introduce traffic mirroring API 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Thomas, > -----Original Message----- > From: Thomas Monjalon > Sent: Thursday, July 30, 2020 2:33 PM > To: Fu, Patrick > Cc: dev@dpdk.org; Yigit, Ferruh ; > maxime.coquelin@redhat.com; Richardson, Bruce > ; Wang, Zhihong ; > Wang, Liang-min ; Ananyev, Konstantin > ; Miskell, Timothy > ; Liang, Cunming ; > arybchenko@solarflare.com; Jiawei Wang ; > orika@mellanox.com > Subject: Re: [dpdk-dev] [RFC] lib: introduce traffic mirroring API > >=20 > I assume you consider deprecating rte_eth_mirror_rule_set() > http://doc.dpdk.org/api/rte__ethdev_8h.html#a1c88c5e86f0358981443600f > 05069091 >=20 Not exactly.=20 The rte_eth_mirror_rule_set() is vendor-dependent API which allows admin to= configure two components (traffic source and traffic destination) of the s= ame NIC so packets can be copied from traffic source to traffic destination= through hardware. The API allows vendor to implement this function via har= dware-dependent offloading capability. In contrast, this RFC is proposing t= wo high-level APIs (vendor independent) to allow admin configuring mirror t= raffic from device A to device B where device A and B may come from differe= nt vendors. In particular, our initial target is on software virtual device= s such as virtio/vhost where there is no mirror hw support.=20 > Please consider reviewing this implementation in rte_flow: > https://patches.dpdk.org/patch/73279/ >=20 For the same reason explained, this patch is also targeting at different us= e cases with our RFC. Thanks, Patrick