From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id C8C4A1B231 for ; Tue, 31 Oct 2017 16:51:26 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id p75so23566528wmg.3 for ; Tue, 31 Oct 2017 08:51:26 -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 :in-reply-to:references; bh=yO4RUX1qUosatP2qz4mgRCVPIs4R2MUR3n5B6ZR/JAM=; b=2J4sfCsllzpDUWMZUCVZVASYAIG/O45c8wLaaTeH8O0yjQYwYIRqswL7mRA25T8USN z4JuOBRR+uxCmiytiT5A51faGdCS4jAqS0yOpgNHsEtyse3x6+4M/XjWG6rPkpoGWygi Pc6LXdrd5XTkSUM8Ojivbdk/UZuT/OggrsqWlk+7VlW2wONpDrAxSA1Sa/Y1ekotw4bm 2zh9eBeCNL7Sg85vSNdsMkm2YoPHGyYGqEUPijDkV+w2uWczmyKueRwy75JdmCfufF+K +X7iutvCoZ+3gVzt1cQQSyO66oCP/nlRX36hQm1GTj2uEiHf/sotm77o1xGtptSgFYVM Fguw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=yO4RUX1qUosatP2qz4mgRCVPIs4R2MUR3n5B6ZR/JAM=; b=ig7pzab0/CYkpAR1GAsU6wP+PfBexAYslBEALK42Y5+SlqdJPb24cuSMZv+VwD01uT vrb0QxBWUE2fkxh6EqdN1JVQFySxUNM6Bi4bOP+El3Zo0ASlkxq9BkXzFQ9SGAdp2O/w /G1AMHpI8rFWmNyhtId3SZXZ4G9dqOZrW1Ee5Nvx6VeZRfAgHyolunYXEHe24HPxwy6I w/hFGvwXUpU1uiJM2pYJ2Pt6CrqV/P2VFqQ9CCAqVxxv4Da6uMqQ7twk3ctLpldQlAzP eVkD7j5xDhqcg/lazrRWzIKLWXuSEyapq1SRXTcbcvLXwrPqy/oaEW/GiRgTvsKCcVPO rcAw== X-Gm-Message-State: AMCzsaX/v7XTlhnnMktMmbKNZFfF10mC99/O43kG/QlpFtnWt+ngg2ha WylGUxrEo1CDdKpm2vAnJNTwabC9ew== X-Google-Smtp-Source: ABhQp+RnCVdLtF9Y50E/pKQm3z7XLbX8s7k1JiUTahoKCODL/Id2IK1gE3ct10Xl5XUna/bEWKxKlA== X-Received: by 10.80.152.229 with SMTP id j92mr3581606edb.279.1509465086331; Tue, 31 Oct 2017 08:51:26 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 33sm1709003edt.75.2017.10.31.08.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 08:51:25 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil , shahafs@mellanox.com Date: Tue, 31 Oct 2017 16:51:12 +0100 Message-Id: <6b8a03256dc0addccf34175908b447c02f68016d.1509464921.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 3/5] net/mlx5: fix RSS tunneled flow without outer 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: Tue, 31 Oct 2017 15:51:26 -0000 Allow to use the RSS when the outer part of the packet is not defined. The RSS is still performed on the outer. This modification only serves the internal engine to create the necessary Verbs flows according to the user request. Fixes: 39797c6db80b ("net/mlx5: fix RSS action for tunneled packets") Cc: shahafs@mellanox.com Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index a7864871c..fcc9a260e 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1010,15 +1010,13 @@ priv_flow_convert_finalise(struct priv *priv, struct mlx5_flow_parse *parser) if (hash_rxq_init[i].ip_version == MLX5_IPV4) { size = sizeof(struct ibv_flow_spec_ipv4_ext); specs.ipv4 = (struct ibv_flow_spec_ipv4_ext){ - .type = IBV_FLOW_SPEC_IPV4_EXT | - parser->inner, + .type = IBV_FLOW_SPEC_IPV4_EXT, .size = size, }; } else { size = sizeof(struct ibv_flow_spec_ipv6); specs.ipv6 = (struct ibv_flow_spec_ipv6){ - .type = IBV_FLOW_SPEC_IPV6 | - parser->inner, + .type = IBV_FLOW_SPEC_IPV6, .size = size, }; } @@ -1038,8 +1036,7 @@ priv_flow_convert_finalise(struct priv *priv, struct mlx5_flow_parse *parser) .type = ((i == HASH_RXQ_UDPV4 || i == HASH_RXQ_UDPV6) ? IBV_FLOW_SPEC_UDP : - IBV_FLOW_SPEC_TCP) | - parser->inner, + IBV_FLOW_SPEC_TCP), .size = size, }; if (parser->queue[i].ibv_attr) { -- 2.11.0