From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 6A7DE29B6 for ; Fri, 18 Mar 2016 13:55:14 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id l68so36015634wml.1 for ; Fri, 18 Mar 2016 05:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=25xF4xyLiNKEqpbpl6ZI7uEzsEKjNNFmnxxdzpxs9BA=; b=WSVuwWwmkPtGOnhBa/+PzQmQvxSDnMeqeAOBCthuJLmgtn7RJj96I+G9vw9kFuz17m QpMwFptKrghYQAkhBrHf2lFbU19N9X+r4Jyrwq7YXGmx4kuGRc2s+fHFIvNPJk2wS5KA Usshdz9CpG2jHCp/xo7JfuRC/piriEzUCAoz2tbRLY9aloGlFioy0hORJdoWyiby8EHj 4Cy0EvbfJPHxomusLo0UuVXL7/C74HcfOMofkeO30lSAVEfSyXc3QHdtMMLVVYmlz+vz eyi8BLRVyZgRDJbjKI8ex1s8IrDsENqxfs4HmgQxQgNMrqEbb1+5MVwtLMR0UgC+AfBW lCEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=25xF4xyLiNKEqpbpl6ZI7uEzsEKjNNFmnxxdzpxs9BA=; b=k5EH4QK389WbyVzIQ9u7Uv2gOzrnYxwad0vGXvjkc1VyoSij/cy27QnxdyNJmG2iDT 4Eel06e2EAjXqOGacMze6hP/RcYMj/czMrLQdaz+SCd4ZsEeQMxf5nVoxdl9y5251RbA qCMiylIUZYRFOGuZnC+3Q85zhvijrOg6uKPrbirHRJp0R0hHk4JCYvLyKsaIm2Droo6f S1NbIV4MrvO7C5+5SLPQP8UUpRuxuz5ARROh3SLBMCczBVae2Z4mc2hTCz3TWjF+GNAr T5tQmc3/RGg56JmN5Q8q/oguy7ViCULP0BNHwys/IJtgevOwiHY9Kag6DB43p6Bvpe0G ziAA== X-Gm-Message-State: AD7BkJJ0LezsJR7xZVSQqFThv563CrFNBtlxuzyxpS68SsLEipFNXcl9VuguE+VslRC/VXKy X-Received: by 10.194.188.20 with SMTP id fw20mr17813783wjc.80.1458305714335; Fri, 18 Mar 2016 05:55:14 -0700 (PDT) Received: from ping.vm.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id r8sm12151884wjz.34.2016.03.18.05.55.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2016 05:55:13 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: adrien.mazarguil@6wind.com Date: Fri, 18 Mar 2016 13:54:43 +0100 Message-Id: <1458305683-31552-2-git-send-email-nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458305683-31552-1-git-send-email-nelio.laranjeiro@6wind.com> References: <1458305683-31552-1-git-send-email-nelio.laranjeiro@6wind.com> Subject: [dpdk-dev] [PATCH 2/2] mlx5: fix handling of NULL RSS key X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2016 12:55:14 -0000 Update function can be called with no key to enable or disable a RSS protocol, or with a key to be applied to the desired protocols. Fixes: 2f97422e7759 ("mlx5: support RSS hash update and get") Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rss.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rss.c b/drivers/net/mlx5/mlx5_rss.c index e73cd9d..639e935 100644 --- a/drivers/net/mlx5/mlx5_rss.c +++ b/drivers/net/mlx5/mlx5_rss.c @@ -156,12 +156,6 @@ mlx5_rss_hash_update(struct rte_eth_dev *dev, rss_conf->rss_key, rss_conf->rss_key_len, rss_conf->rss_hf); - else - err = rss_hash_rss_conf_new_key(priv, - rss_hash_default_key, - rss_hash_default_key_len, - ETH_RSS_PROTO_MASK); - /* Store protocols for which RSS is enabled. */ priv->rss_hf = rss_conf->rss_hf; priv_unlock(priv); -- 2.1.4