From patchwork Fri Aug 3 13:36:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Mazarguil X-Patchwork-Id: 43567 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DC5B1B5A5; Fri, 3 Aug 2018 15:37:03 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 1CFE51B59B for ; Fri, 3 Aug 2018 15:37:01 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id j5-v6so5439422wrr.8 for ; Fri, 03 Aug 2018 06:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FoxA7ECL9wOPjGs1GFaZZM4lZSj7ftFVgATNr2cWHgo=; b=ptBqk+h1KlGxutcyrySvjmgVoXCKkuFrSLg/9EJdVJpyK9JMyXl7Ye9qiJRZGrQtwo vinI2tpJRbZyC9mHXdK1m86SLYwTAJboyh7+HXXcqERP4kzEeHl2ti9ic4pVgLbKtpxP orekvybN4Kk34cxjIzXR49+cRQcDtG8OihL9UCLiHB3utGor0ZpAIuozO3EKCX26zGmA 42tCcrUrn9UurEucf400F8cgdae2HSGNK6CyYrcQKCbvifddSA/WmE5sWS+9FugjOoC+ gkCCGEIln3ubblX5KpeqocIHA5pYMaBzRuDxBMgDSSL4pDYQ6HjJFhJnn2vvIWMd769i nk0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FoxA7ECL9wOPjGs1GFaZZM4lZSj7ftFVgATNr2cWHgo=; b=s/5/XNPHtE8tkbs2qm4wTSwIhZf7OLn8zsuu/xIlK4gUOUBsN79dNskyMPs706qa57 3fFdqWZruy+Bmcbv6BhJ8mcqpx8O6H5dnml3Ic8cb6eKIbnCVBndWuOTUQMzXqe+mWpG ha13TNfRkiSiIanS299BafMfmGNDgRrnVHHhatl7jnWYMMvlfzBaHRszWmLgvGaCAeM5 Ui310Ux5Ssh4cLZJ4ft5zj+0lhJPC1wG62j7JRwoX2Gq7B6SM/2fzJbhFHFEWahLZcU/ bp5J/In/umIblc3s9HiFdbH2tXnYiWik/Y6n3DRTf8mbMJoGbIuzp/lnW8Zh4ejuW47h yYCw== X-Gm-Message-State: AOUpUlFqeaJ9xC2nt0CWE28Soli8fYAUiU308FBWBb6i17/siEaT0nC3 SfWsHTsd0gr+BGi4ceAaTxm0QQ== X-Google-Smtp-Source: AAOMgpfNxdNr3ADnLUDkRDDwCvfZeCagNxGrZ7Fqp5XYEKWRx0LPFHyzoADZa5gR8ZOqbqwjdtXdhg== X-Received: by 2002:adf:ff11:: with SMTP id k17-v6mr2539876wrr.255.1533303420953; Fri, 03 Aug 2018 06:37:00 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id i14-v6sm8325261wmd.13.2018.08.03.06.37.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Aug 2018 06:37:00 -0700 (PDT) Date: Fri, 3 Aug 2018 15:36:43 +0200 From: Adrien Mazarguil To: Ferruh Yigit Cc: dev@dpdk.org, Thomas Monjalon , Andrew Rybchenko , Gaetan Rivet Message-ID: <20180803132032.29038-7-adrien.mazarguil@6wind.com> References: <20180803132032.29038-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180803132032.29038-1-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v2 6/7] ethdev: deprecate rte_flow_copy function 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" No users left for this function, time to deprecate it. Signed-off-by: Adrien Mazarguil Cc: Thomas Monjalon Cc: Ferruh Yigit Cc: Andrew Rybchenko Cc: Gaetan Rivet --- v2 changes: - Patch was not present in original series. --- lib/librte_ethdev/rte_flow.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index c48ea8a51..891be1557 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -2332,6 +2332,7 @@ rte_flow_error_set(struct rte_flow_error *error, const char *message); /** + * @deprecated * @see rte_flow_copy() */ struct rte_flow_desc { @@ -2343,10 +2344,13 @@ struct rte_flow_desc { }; /** + * @deprecated * Copy an rte_flow rule description. * * This interface is kept for compatibility with older applications but is - * implemented as a wrapper to rte_flow_conv(). + * implemented as a wrapper to rte_flow_conv(). It is deprecated due to its + * lack of flexibility and reliance on a type unusable with C++ programs + * (struct rte_flow_desc). * * @param[in] fd * Flow rule description. @@ -2365,6 +2369,7 @@ struct rte_flow_desc { * If len is lower than the size of the flow, the number of bytes that would * have been written to desc had it been sufficient. Nothing is written. */ +__rte_deprecated size_t rte_flow_copy(struct rte_flow_desc *fd, size_t len, const struct rte_flow_attr *attr,