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 B89BBA00BE; Tue, 7 Jul 2020 10:15:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F2441D934; Tue, 7 Jul 2020 10:15:55 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C42F81D924 for ; Tue, 7 Jul 2020 10:15:53 +0200 (CEST) IronPort-SDR: F4MzNs+1JirtLzmoIconOyTfU9jQkktLdOZhxdcL77cU1JVUmxXNZxlEU2fYBalqrZ2ciXflbh Tk0LaG4TxCtA== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="212526301" X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="212526301" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 01:15:43 -0700 IronPort-SDR: OeYOPVpxtsuGcmc7z0yOj0MjldtDndVT09D7gqautxu6azaUtKDVjGYFjMwe1Luqyc6sHIIlgA Aha4PVl4o21g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="315450734" Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by fmsmga002.fm.intel.com with ESMTP; 07 Jul 2020 01:15:43 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX108.amr.corp.intel.com (10.22.240.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Jul 2020 01:15:42 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 7 Jul 2020 01:15:42 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 7 Jul 2020 01:15:42 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Jul 2020 01:15:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CxRFukhX2n+bMqZu8F1TwyqbkYzW67Rht5vEcUWLCOE2fG7etWvE+8himAHhoB4aqOmVLNCIfMYAV0oeMOscaREFU1t8c0iMa4Hnp2DbSoXuwe77AYpLO/gU5ijepfLyGhPtaxyv0Pf2iQLXLf5ip+jUWIEdeATsWyKSp9rBnFwIvXgz1T7Z06R04BHS+vkfb7XwL9br57Nu11LLokvjaxZ/IP6xefnSaFTPH4zkGDcIkSo7HaQqWcqsBF/THRAE3CXgSW7Wml6Sx8oLKHpWXDvATJiBv5PCgPjIM3gYlWQ2FuIVRmSTa23b4uCti+dRn//TCHwvKEIJQMBrZlQhSA== 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=W8jNvMRHreHoRQWOEed+rGM1fRGezVy59vRzMr2rrzQ=; b=YCqHOGzDIlIYZYZzbPJ5SPnSC8/jzNqqAaLrOYspEgRVFpFodzMyOJlqLCvCxgY2ByEByxFopI0eegVslw6Z7ULivix6JCH1f3anRljuSHZfXR5Bvm13i3b88pa3jO471OhHTjijvrKS9ZyR0syWYzfLmo8b+cprBMgfZoMvcHBrehIRmA8X6SeSwF9IAqe6FgFbvwEO410u8WBolDEPNdDwnoxoXCmQm1XJ3Q7zUyf4umCAzppOzF/4AMkmZ3MEJ2lQ5DymuBWYf5bXVkvj+tNYhrez4ovv551Tg8lfrW5zNJkvxUKPs0xdmS6pvq3Ee44CiKQhcJb5TJxscg7gGw== 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=W8jNvMRHreHoRQWOEed+rGM1fRGezVy59vRzMr2rrzQ=; b=nJ3+4Ts8Gewtmok5El/Tw20Q5nUNGWZkgvspjMv47JovYTQYuIrsIlXI7DkG7aTTeGi31yiFIyHQsrjDbtqsZaYmJlK5O7rW48XWj78ebfHjBgGXTibH39CZJaH1kAkL663hCdIgHEahFV++ZTG0PQVCBWASN/2ht8uyFBuHY5U= Received: from MN2PR11MB3807.namprd11.prod.outlook.com (2603:10b6:208:f0::24) by MN2PR11MB3853.namprd11.prod.outlook.com (2603:10b6:208:ea::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.29; Tue, 7 Jul 2020 08:15:41 +0000 Received: from MN2PR11MB3807.namprd11.prod.outlook.com ([fe80::401c:b4b:31c4:98b8]) by MN2PR11MB3807.namprd11.prod.outlook.com ([fe80::401c:b4b:31c4:98b8%3]) with mapi id 15.20.3153.029; Tue, 7 Jul 2020 08:15:41 +0000 From: "Xing, Beilei" To: "Sun, GuinanX" , "dev@dpdk.org" CC: "Guo, Jia" Thread-Topic: [PATCH v3] net/i40e: support cloud filter with L4 port Thread-Index: AQHWVCnM1XUSq2t0JUi2nJLsplU1z6j7tRGg Date: Tue, 7 Jul 2020 08:15:40 +0000 Message-ID: References: <20200611052416.14592-1-guinanx.sun@intel.com> <20200707063333.56791-1-guinanx.sun@intel.com> In-Reply-To: <20200707063333.56791-1-guinanx.sun@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 197d8e04-c286-446f-151d-08d8224df02b x-ms-traffictypediagnostic: MN2PR11MB3853: 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:7691; x-forefront-prvs: 0457F11EAF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HMais9j2/W4wTp9AldmQg0R5DRDLtldUI6P+cpyWynLBRrhipEv9zlPujUpoU9sATAoFiRHWv866xyJY/1Rlzv+/VRww8erpHavrUVxhqIEXdQlwqv81sHmOFgD3LB0ZhTZUqu84lA2/VzP8g9OB4JHYdelIF9NHWoXRcRNKcQAFApogflW3yWS6HW4ojmtQImVRT8UZ3O2iHNzFxtCUTXSVlRktIW7MgCFkEJRfyrgKVmujXJKEeDmTuurg4gzzFD0dJCQB5kvgpEYMUqvXFoLl7DgdipaaL+mN2JkNlcEHH+jMt0pPNttK/eRs0mnE x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3807.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39860400002)(33656002)(5660300002)(9686003)(86362001)(52536014)(186003)(55016002)(26005)(478600001)(66556008)(66476007)(107886003)(64756008)(110136005)(8676002)(7696005)(83380400001)(6506007)(2906002)(8936002)(4326008)(66446008)(76116006)(316002)(66946007)(53546011)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: Qt2PhB747tH3eSmQdIQD+jXqKQa0D9Wt2EW8J4jaqoSozyV/2WxWwKWnI/E0hwN9Nvdvt5BBjqc1kEh4oOcQ36TUTU96NxnFVb3lpGlmIB3NvzG35p1sW/944gN9EpymgSSwtzeZgHrbXVFALchQUBKI8fzanqT3VzCEUAcJWHmU4Cg/u1IWiS/VdZMz6VCi+J6CGPfTOsBlt/AmBWoHx/WGC1RhzwAoG5dJo/HyqFkrVaNzPIe3EfgCyYhpAutpFIPcyotQdAeir8mD2RF9VjHO4GPba7rvWT+x+hwCYR0Mpp3Ey7//HuiechuNdCVm4Y6RShnw+GKMxWRzXmrBcC53F6C3YgBAs7KT9U66UZ7DnYlT4aP3BZs1P1bEAkDRS2XZU19gdTnqY4tr2SZZO5y8cjZxlivHUjMr5F7Yn/EKpqk93SYkLig+aX3A7FmXznxqaigFAcPxBTpAi5sj68piDposq78jH1Y95+F5l6pWgcK6BvjQb7naEIhcM7Nj 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: MN2PR11MB3807.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 197d8e04-c286-446f-151d-08d8224df02b X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2020 08:15:40.8697 (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: NtaXE2ASYEWFDy4buiCcXJldTMJehv/+nquxv7G3NyyzZC1XqpgO96yla91oUYVC7J47fs+TioE3bBu/+JVkyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3853 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] net/i40e: support cloud filter with L4 port 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" > -----Original Message----- > From: Sun, GuinanX > Sent: Tuesday, July 7, 2020 2:34 PM > To: dev@dpdk.org > Cc: Xing, Beilei ; Guo, Jia ; S= un, > GuinanX > Subject: [PATCH v3] net/i40e: support cloud filter with L4 port >=20 > This patch enables the filter that supports to create following two rules= for > the same packet type: > One is to select source port only as input set and the other is for desti= nation > port only. > And the supported packet types are UDP/TCP/SCTP. >=20 > Signed-off-by: Guinan Sun > --- > v3: > * Add limitation to i40e.rst > * Rename variables. > * Fixed the variable assignment. > v2: > * Fixed code style and variable naming > --- > doc/guides/nics/i40e.rst | 9 + > doc/guides/rel_notes/release_20_08.rst | 8 + > drivers/net/i40e/i40e_ethdev.c | 200 +++++++++++++++++++++- > drivers/net/i40e/i40e_ethdev.h | 18 ++ > drivers/net/i40e/i40e_flow.c | 223 +++++++++++++++++++++++++ > 5 files changed, 457 insertions(+), 1 deletion(-) >=20 > diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index > 00c3042d5..98a5537d7 100644 > --- a/doc/guides/nics/i40e.rst > +++ b/doc/guides/nics/i40e.rst > @@ -736,6 +736,15 @@ with DPDK, then the configuration will also impact > port B in the NIC with kernel driver, which don't want to use the TPID. > So PMD reports warning to clarify what is changed by writing global regi= ster. >=20 > +L4 port filter Please don't use 'L4 port filter', there's no such filter type in i40e pipe= line. > +~~~~~~~~~~~~~~ > + > +L4 port filter is a new type of cloud filter. > +It is possible to generate two filters - one to select L4 DST port and > +second to select L4 SRC port. > +If the L4 port filter is used, the cloud filter using inner Vlan and > +Tunnel Key will be invalid. > + > High Performance of Small Packets on 40GbE NIC > ---------------------------------------------- >=20 > diff --git a/doc/guides/rel_notes/release_20_08.rst > b/doc/guides/rel_notes/release_20_08.rst > index f4b858727..d7d4c4e3b 100644 > --- a/doc/guides/rel_notes/release_20_08.rst > +++ b/doc/guides/rel_notes/release_20_08.rst > @@ -108,6 +108,14 @@ New Features > * Dump ``rte_flow`` memory consumption. > * Measure packet per second forwarding. >=20 > +* **Updated Intel i40e driver.** > + > + Updated i40e PMD with new features and improvements, including: > + > + * Added a new type of cloud filter to support the coexistence of the > + following two rules. One selects L4 destination port as input set an= d > + the other one selects L4 source port. We call it L4 port filter. We didn't call it L4 port filter. > + But there are limitations on using the L4 port filter. I think no need to mention the limitation here, since you have added in i40= e.rst