Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 689F8C433EF for ; Fri, 11 Feb 2022 17:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343511AbiBKRO0 (ORCPT ); Fri, 11 Feb 2022 12:14:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242158AbiBKROZ (ORCPT ); Fri, 11 Feb 2022 12:14:25 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A9CC02 for ; Fri, 11 Feb 2022 09:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644599664; x=1676135664; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dMniU5NBdF8w4V6EPmDKSuPlk2t6kaP7q43irGMCf94=; b=JaXEppTuBL7p6lP4rKlQNDJI4pYoh9JfxWhT24PamsQ/2ucuDbw+77gZ 8vRrotiI0oTy+LZ3Cd1XQTaxTw72f0mF9Fz+YuLHj4y0LPjA7fiZdkalV rN//CZYlmXFU8Cby0JFWA0lgeONX5vVnmcUunXjCttL3HeZ5osLUNWQeL yN8C/6e+373UOChKQHwa/vPqV5145FjYlJuZEvvBd2JK+63TttyPOJQ47 4/UGgN2iuXAJJB3ssMX+Q1H9UqypJwvxO/QlggrOnC12M+4zotV1U3azL iyLJmhGCkfP8+zzA9NZUB4Sf8jqbbyvx8hru6Ak/K/UMIAevvvR7MA55m Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10255"; a="248601636" X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="248601636" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 09:14:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="527024483" Received: from anguy11-desk2.jf.intel.com ([10.166.244.147]) by orsmga007.jf.intel.com with ESMTP; 11 Feb 2022 09:14:24 -0800 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org Cc: Jesse Brandeburg , netdev@vger.kernel.org, anthony.l.nguyen@intel.com, Gurucharan G Subject: [PATCH net 1/1] ice: enable parsing IPSEC SPI headers for RSS Date: Fri, 11 Feb 2022 09:14:18 -0800 Message-Id: <20220211171418.310044-1-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jesse Brandeburg 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 --- drivers/net/ethernet/intel/ice/ice_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index 0c187cf04fcf..53256aca27c7 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -1684,6 +1684,12 @@ static void ice_vsi_set_rss_flow_fld(struct ice_vsi *vsi) if (status) dev_dbg(dev, "ice_add_rss_cfg failed for sctp6 flow, vsi = %d, error = %d\n", vsi_num, 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); } /** -- 2.31.1