From patchwork Thu Jul 23 11:10:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junfeng Guo X-Patchwork-Id: 74627 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 32FB7A0526; Thu, 23 Jul 2020 05:12:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B1F141BE9A; Thu, 23 Jul 2020 05:11:59 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id ADB572C01 for ; Thu, 23 Jul 2020 05:11:57 +0200 (CEST) IronPort-SDR: zRfzPtHXsAwQKI3cR87qbeSKadfzt/B8wSzbjoRUa4ARphxqWam8k8WJhEn2oxsEMOz4flXDxW DIwiH0S9cgTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9690"; a="149633781" X-IronPort-AV: E=Sophos;i="5.75,385,1589266800"; d="scan'208";a="149633781" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 20:11:56 -0700 IronPort-SDR: mWjs3PO2MzdW1IBMSx9JIAZoZzwxhiTc2UCjp1teAjyCIbn/bXtlFrX5zjn7cAF0g4jhDkYmSW wZc7jLnGjAqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,385,1589266800"; d="scan'208";a="488213749" Received: from dpdk-junfengguo-v1.sh.intel.com ([10.67.119.59]) by fmsmga006.fm.intel.com with ESMTP; 22 Jul 2020 20:11:53 -0700 From: Junfeng Guo To: qi.z.zhang@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, jia.guo@intel.com, junfeng.guo@intel.com, simei.su@intel.com Date: Thu, 23 Jul 2020 11:10:25 +0000 Message-Id: <20200723111025.2457485-1-junfeng.guo@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/iavf: disable function simple xor for AVF RSS 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" Function simple_xor for AVF RSS is not required currently, thus we just return rte_flow error when the commandline has item simple_xor. Signed-off-by: Junfeng Guo Acked-by: Qi Zhang --- drivers/net/iavf/iavf_hash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c index 40bb9dddc..dfc682298 100644 --- a/drivers/net/iavf/iavf_hash.c +++ b/drivers/net/iavf/iavf_hash.c @@ -4160,6 +4160,9 @@ iavf_hash_parse_action(const struct rte_flow_action actions[], RTE_ETH_HASH_FUNCTION_SIMPLE_XOR){ rss_meta->rss_algorithm = VIRTCHNL_RSS_ALG_XOR_ASYMMETRIC; + return rte_flow_error_set(error, ENOTSUP, + RTE_FLOW_ERROR_TYPE_ACTION, action, + "function simple_xor is not supported"); } else if (rss->func == RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ) { rss_meta->rss_algorithm =