From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id EEB4D1B268 for ; Thu, 12 Oct 2017 14:01:36 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2A5A520F7B; Thu, 12 Oct 2017 08:01:36 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 12 Oct 2017 08:01:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=ZVJ5S663fmsMQKKuZNAGkKtXEC Ur6fRPZYNor8CZQ3Y=; b=objoIAsJEEJwiAsVJGKauKjekc4SC8ZUiAGoaX6ihA 1O8lXhnUK6RCcbxaS8fuklUksFv40KrkU1hBP90WnJKCVMfQOlH3tOP7tp6js3Zb P7NvwW0KYjo41MGL4JLiMYKdztMASrEB0Q64dxmnCY3QzME1+V/WL2LxMQpmkxr5 w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ZVJ5S6 63fmsMQKKuZNAGkKtXECUr6fRPZYNor8CZQ3Y=; b=eprUKDy17p5p52BjqeV2qT 8knioHztBTMFkZ19EPOdPdBvitadtZ6cBtAr9hAMcfaB1JIQ/Jz4rXsx51PJWxOJ 7aVuO/c/uFoN2mJ93bdH6Dj/gZful1LqVu8+deuGu8Yzd8vRBhcq/N1IQTqWU/cv XtsjQv+jBItRzrWvfaBntQgEHr6YPxieBvk5+PXyebiXh7ElBoHILEApHWxVXRpi PPt9RMGyPRZH6Y+W4lEvy4KsyC6UACz6FBRas3zzTLYQNFzh+wiliBcT3z9D4e63 YITutqORpa+/VwUM4rwDpNPWFbOGLHMz6VYyJTRWVC5RSgwz7C4mqso/Sunz+NeQ == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id CBCA224141; Thu, 12 Oct 2017 08:01:35 -0400 (EDT) From: Thomas Monjalon To: "Rybalchenko, Kirill" Cc: dev@dpdk.org, "Chilikin, Andrey" , "Xing, Beilei" , "Wu, Jingjing" , "Yigit, Ferruh" Date: Thu, 12 Oct 2017 14:01:34 +0200 Message-ID: <15090905.rkyCvRJ0mH@xps> In-Reply-To: <696B43C21188DF4F9C9091AAE4789B824E2A26F5@IRSMSX108.ger.corp.intel.com> References: <1507666412-15320-1-git-send-email-kirill.rybalchenko@intel.com> <8389257.54itpyZSoc@xps> <696B43C21188DF4F9C9091AAE4789B824E2A26F5@IRSMSX108.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v5 1/4] ethdev: add support for raw flow type for flow director 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: , X-List-Received-Date: Thu, 12 Oct 2017 12:01:37 -0000 OK, a private API is a good short term approach. 12/10/2017 13:41, Rybalchenko, Kirill: > Hi Thomas, > > The reason this feature is needed is to be able to program custom flow types using a template packet rather than building up a C struct to define the protocol. This means that users don't have to work on the DPDK internals to support new flow types that they may be using, but can instead add them dynamically as part of their application. There are also several customers who are looking for this feature as part of the 17.11 LTS release. > > This patchset has been out since August and these comments are very late, with the first objections last week, which we tried to answer. This short notice doesn't allow us a reasonable amount of time to take them into account. > > However, to address your primary concern, we can implement this using a i40e private API, so that we are not tying users to FDIR APIs and thus not blocking the removal of the APIs in time. > > Ideally we would like to use rte_flow but it is based around the idea of describing packet headers which is significantly different from the proposed method using template packets. Longer term it may be possible to support this in rte_flow, we could propose this for discussion in the next release, and if there is community interest/agreement we can add it. > > We will rework this, in the short term, as a private API, as suggested above, and then propose an rte_flow API in the longer term. Let us know if you have any concerns about this. > > Regards, > Kirill. > > > -----Original Message----- > > From: Thomas Monjalon [mailto:thomas@monjalon.net] > > Sent: Wednesday 11 October 2017 23:27 > > To: Rybalchenko, Kirill > > Cc: dev@dpdk.org; Chilikin, Andrey ; Xing, Beilei > > ; Wu, Jingjing ; Yigit, Ferruh > > > > Subject: Re: [dpdk-dev] [PATCH v5 1/4] ethdev: add support for raw flow > > type for flow director > > > > Hi, > > > > 10/10/2017 22:28, Kirill Rybalchenko: > > > Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to > > > support filter for raw flow type. > > > > > > Signed-off-by: Kirill Rybalchenko > > > > This description does not explain why you add this new flow director type. > > It seems you are allowing a new feature to filter custom protocols. > > > > As I replied on v2, you are implementing your new feature with a deprecated > > API (there is a deprecation notice without any deadline). > > It is dangerous because this new use case will be settled on top of a fragile > > foundation. And because of these new users, it will be harder to drop this > > API as announced. > > It is also dangerous because you are not trying to implement your feature > > with the new rte_flow API. So we cannot be sure that it will fit for every use > > cases. > > If rte_flow is not good enough, we must improve it. > > > > This is my suggestion: > > 1/ Implement this interesting feature with rte_flow. > > 2/ Switch every other use cases to rte_flow. > > 3/ Let's agree on a date to drop the legacy flow director API. > > > > So this is a NACK. > > Please let's move forward.