Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4422970pxb; Mon, 21 Feb 2022 21:08:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqVfO6fo8QIakC16slWBU2OnjclI7i0fQYMD2NyLxkyOnHD+Ccs6YylTkj0+1DNw7VSzsw X-Received: by 2002:a63:a22:0:b0:362:b5d4:fa89 with SMTP id 34-20020a630a22000000b00362b5d4fa89mr18719144pgk.372.1645506488581; Mon, 21 Feb 2022 21:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645506488; cv=none; d=google.com; s=arc-20160816; b=k8LdBSue3jeus+MGL98gmFKHUiWm3u/w6ScPwP4TcQVnfKaE08sjJdnIMz37x3V9xu fMeHth0oLrcdDSYJjWf00SdDzONGNjg7f2g0BNtp6q/5ewUBDh+ZNrbZy/paXQr27L1z grm/f92PYUSCLc2WV2lZrxUcvLnc2KaoN74EIU22VPnhOXA6I2Aa48fGI+zdi5ZBzkAn YUrQGZCEYd1MNzucF4RRddB6kaq2e6hs9FNL2fd+AG+U//Ylf9NqFgBv/bKmfTNv1FDg XGdi777BaFIPvdf2aG9+yXyIr4TAYfd1+sm5NBGaUDJ3GnlMCOhFu0WPq8aL7XeBFE9N KYtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Chxn5pWOLyh2l6CMujF0ULNBOTUgQqZ8m4e/PoLlOoc=; b=IUySMMItpvvfhbIjSfTHBarSmrcpLThSnMBnUKfcC0XISfAN2jgcWaf6pD8sGJMdB1 v6EpD2MaRsWPWS70nfDUCD4FdlmIVl1nrGhvCJCEvmXJuADmBuZLo7bZr6RfM4Hi+6Sn swFIa/tYBFxFRkUMDPYotE2EpJVK3S2l4GkDVUrj1Mafg4MqMs8Al+aR/+HH8maLqVO3 jBF0hKT7l2zPD/wI1n7L/6kP1OnLOFz9oBq/jYP5B4QFHR0NYt9lM1T7NM/v1ymnk3mb B7MmSpQuO/JCTWsUFZK/EZ/+mnOcYOep2SpQjBTYkhdS3TwxCN1J7dc2Ugcd9+oltbX1 j3ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wsubSSlq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b7si33348836pll.399.2022.02.21.21.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:08:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wsubSSlq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C54C0C4846; Mon, 21 Feb 2022 20:41:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353517AbiBUKLA (ORCPT + 99 others); Mon, 21 Feb 2022 05:11:00 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353256AbiBUJ5R (ORCPT ); Mon, 21 Feb 2022 04:57:17 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E6313914F; Mon, 21 Feb 2022 01:25:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3C8A2B80EBC; Mon, 21 Feb 2022 09:25:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62228C340E9; Mon, 21 Feb 2022 09:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435508; bh=gIuvYrTqGaDPEsHHMoTOQ65Y5dAWBVbFGsrAzoAq1Js=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wsubSSlq/lPwp2LI/dp5aumr/byRRswRRCjhFJZLWBLxXGUA2hyPZ/S4058+K5lMW BhYMVgaIp4iB1Rtx/36Den/b1pZrEYR76JLphhExFkCjOrRfJj9WFHk2Tx4SgyH4nR 5pS6dJnM1q5eTAjk9JNa6o/Hln+yBkaANMeR1mf4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Gurucharan G Subject: [PATCH 5.16 189/227] ice: enable parsing IPSEC SPI headers for RSS Date: Mon, 21 Feb 2022 09:50:08 +0100 Message-Id: <20220221084941.105054926@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jesse Brandeburg commit 86006f996346e8a5a1ea80637ec949ceeea4ecbc upstream. The COMMS package can enable the hardware parser to recognize IPSEC frames with ESP header and SPI identifier. If this package is available and configured for loading in /lib/firmware, then the driver will succeed in enabling this protocol type for RSS. This in turn allows the hardware to hash over the SPI and use it to pick a consistent receive queue for the same secure flow. Without this all traffic is steered to the same queue for multiple traffic threads from the same IP address. For that reason this is marked as a fix, as the driver supports the model, but it wasn't enabled. If the package is not available, adding this type will fail, but the failure is ignored on purpose as it has no negative affect. Fixes: c90ed40cefe1 ("ice: Enable writing hardware filtering tables") Signed-off-by: Jesse Brandeburg Tested-by: Gurucharan G (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ice/ice_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -1641,6 +1641,12 @@ static void ice_vsi_set_rss_flow_fld(str if (status) dev_dbg(dev, "ice_add_rss_cfg failed for sctp6 flow, vsi = %d, error = %s\n", vsi_num, ice_stat_str(status)); + + status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_ESP_SPI, + ICE_FLOW_SEG_HDR_ESP); + if (status) + dev_dbg(dev, "ice_add_rss_cfg failed for esp/spi flow, vsi = %d, error = %d\n", + vsi_num, status); } /**