From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A6ECC25B75 for ; Tue, 7 May 2024 11:40:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id CACA7404D5; Tue, 7 May 2024 11:40:42 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 4CFNdrTsvOwC; Tue, 7 May 2024 11:40:41 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 73B0E4075A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1715082041; bh=DOVz5G+TnCjOJtQYEzd3pzQ88bNxzPikkZ02OclgpWo=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=4lw3NFYpZD1b9U2NbYw21sX7t1HnPlhf3UoQYz70FkE16UaqPyVepMKrMkQxTfyBd clNekB14gGvGeyt1ya/AjRf/D+RBT0YA5YCcpbX14miJ0xPgVex7Cd1wG3+dzrPIGI NCk5bHUjZBhOAtbe8eEZILeFrG9S7M/FCRIY8CKsrIkNcefvDw0cJZXFoxFcu26DSJ kERFBOiXJS+E9g0bSS4xpWvxPr4BnW+R1RPtKlbrL/mAcg1s3APlPwOsM9tY+SfJI0 ypWCpD5q66+tQr3w4wdZ4wzk2h05ILzPiwpTv0/N9Pqh52NO24qG1uNAGlRfL1D5H0 s/y5NXsUzCy4w== Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 73B0E4075A; Tue, 7 May 2024 11:40:41 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 3E1E51BF5A0 for ; Tue, 7 May 2024 11:40:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3860E40223 for ; Tue, 7 May 2024 11:40:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id H-CcZMkN5MQI for ; Tue, 7 May 2024 11:40:39 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=198.175.65.13; helo=mgamail.intel.com; envelope-from=michal.swiatkowski@linux.intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 5880F40154 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5880F40154 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by smtp2.osuosl.org (Postfix) with ESMTPS id 5880F40154 for ; Tue, 7 May 2024 11:40:39 +0000 (UTC) X-CSE-ConnectionGUID: IqrRHXBsSzyAFaZ7Dvg4jg== X-CSE-MsgGUID: X2//1VRmSL2b/NUbQkSWnQ== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="22029258" X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="22029258" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 04:40:40 -0700 X-CSE-ConnectionGUID: JlShoNYRQECW6H+9ptThQQ== X-CSE-MsgGUID: C1c1cCk5SmWbinrikK7lIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="28576708" Received: from wasp.igk.intel.com (HELO GK3153-DR2-R750-36946.localdomain.com) ([10.102.20.192]) by orviesa009.jf.intel.com with ESMTP; 07 May 2024 04:40:36 -0700 From: Michal Swiatkowski To: intel-wired-lan@lists.osuosl.org Date: Tue, 7 May 2024 13:45:10 +0200 Message-ID: <20240507114516.9765-10-michal.swiatkowski@linux.intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240507114516.9765-1-michal.swiatkowski@linux.intel.com> References: <20240507114516.9765-1-michal.swiatkowski@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715082040; x=1746618040; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eMS+oxn1tYp+rxus1jdEnm2eqSOO3ayeaJRU5iz4V2o=; b=HP6WC+/tQ1+iV6SvDzfW0QlMYQ/S09fxV42WnVj90dpqidPDBR7I4H7W hMMpPGbXQbPRZKG/YMut+y9IMEEUvsh8J67MMNDJRqhLZPexya6iHDiy3 wqig3s6ZEdK0I+KlZz8TzBt3K3VTdy2a6Mb3H4U7SkO/JlzLswCjS0C0v 5u0AeCRMe8asu1H8yLnsWkUbswHVJjZsC5tNImXbNXY6e2+DM627RUbdh E1BT8+JaWGD0K2JriOFlnoXG/uBufUyaXaY0E74f61z/jSTDc6xldy3Kt 8pNhIGJyF6L1eCz9gVAzkbR9XL9zQLiPudxyNnsKJibKqcf/pdVK5pm+z g==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=none (p=none dis=none) header.from=linux.intel.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HP6WC+/t Subject: [Intel-wired-lan] [iwl-next v1 09/14] ice: don't set target VSI for subfunction X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shayd@nvidia.com, maciej.fijalkowski@intel.com, sridhar.samudrala@intel.com, mateusz.polchlopek@intel.com, netdev@vger.kernel.org, jiri@nvidia.com, michal.kubiak@intel.com, pio.raczynski@gmail.com, przemyslaw.kitszel@intel.com, jacob.e.keller@intel.com, wojciech.drewek@intel.com Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Add check for subfunction before setting target VSI. It is needed for PF in switchdev mode but not for subfunction (even in switchdev mode). Signed-off-by: Michal Swiatkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c index 8bb743f78fcb..fe96af89509b 100644 --- a/drivers/net/ethernet/intel/ice/ice_txrx.c +++ b/drivers/net/ethernet/intel/ice/ice_txrx.c @@ -2405,7 +2405,7 @@ ice_xmit_frame_ring(struct sk_buff *skb, struct ice_tx_ring *tx_ring) ICE_TXD_CTX_QW1_CMD_S); ice_tstamp(tx_ring, skb, first, &offload); - if (ice_is_switchdev_running(vsi->back)) + if (ice_is_switchdev_running(vsi->back) && vsi->type != ICE_VSI_SF) ice_eswitch_set_target_vsi(skb, &offload); if (offload.cd_qw1 & ICE_TX_DESC_DTYPE_CTX) { -- 2.42.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B5F8156C78 for ; Tue, 7 May 2024 11:40:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715082040; cv=none; b=U1KUyhVEWVRiRcad3X0hs7gznpAHj2YYd/bQS8gDRNyWTZbAfRY+5ZwDVq3VHlQGIq2zHDv8G5NUn4cEuSPrZ+nJ7fnDvBMIIDenU1fnxrEJI/k42GzlHg1l9udZwByCE/z4zDYt/ppN/R3Hx3jYAARMFf9Cnk0kmyFnL1gmhC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715082040; c=relaxed/simple; bh=eMS+oxn1tYp+rxus1jdEnm2eqSOO3ayeaJRU5iz4V2o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=m5mU1TpQgKOu+aSMd+f+VKhJq7LL2oe6ZkpI5jUkUi+0CF2hk6IvmHbFQ2o3MrEgy3L8D9MGkMqfDFSpQ2N99hoq9bUMiKnyN6zNVwMqASjOEGhLLwIhGi81n1SQ/T6RXT2zWAXTRfrgdb6aFtHY7eyjIKYJGdRqhUeygdDguZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HP6WC+/t; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HP6WC+/t" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715082040; x=1746618040; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eMS+oxn1tYp+rxus1jdEnm2eqSOO3ayeaJRU5iz4V2o=; b=HP6WC+/tQ1+iV6SvDzfW0QlMYQ/S09fxV42WnVj90dpqidPDBR7I4H7W hMMpPGbXQbPRZKG/YMut+y9IMEEUvsh8J67MMNDJRqhLZPexya6iHDiy3 wqig3s6ZEdK0I+KlZz8TzBt3K3VTdy2a6Mb3H4U7SkO/JlzLswCjS0C0v 5u0AeCRMe8asu1H8yLnsWkUbswHVJjZsC5tNImXbNXY6e2+DM627RUbdh E1BT8+JaWGD0K2JriOFlnoXG/uBufUyaXaY0E74f61z/jSTDc6xldy3Kt 8pNhIGJyF6L1eCz9gVAzkbR9XL9zQLiPudxyNnsKJibKqcf/pdVK5pm+z g==; X-CSE-ConnectionGUID: +UWcDW/5SfCyIYG/lhZCUQ== X-CSE-MsgGUID: UqAgb5hxSTGmiNyup/4mWA== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="22029257" X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="22029257" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 04:40:40 -0700 X-CSE-ConnectionGUID: JlShoNYRQECW6H+9ptThQQ== X-CSE-MsgGUID: C1c1cCk5SmWbinrikK7lIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="28576708" Received: from wasp.igk.intel.com (HELO GK3153-DR2-R750-36946.localdomain.com) ([10.102.20.192]) by orviesa009.jf.intel.com with ESMTP; 07 May 2024 04:40:36 -0700 From: Michal Swiatkowski To: intel-wired-lan@lists.osuosl.org Cc: netdev@vger.kernel.org, jacob.e.keller@intel.com, michal.kubiak@intel.com, maciej.fijalkowski@intel.com, sridhar.samudrala@intel.com, przemyslaw.kitszel@intel.com, wojciech.drewek@intel.com, pio.raczynski@gmail.com, jiri@nvidia.com, mateusz.polchlopek@intel.com, shayd@nvidia.com Subject: [iwl-next v1 09/14] ice: don't set target VSI for subfunction Date: Tue, 7 May 2024 13:45:10 +0200 Message-ID: <20240507114516.9765-10-michal.swiatkowski@linux.intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240507114516.9765-1-michal.swiatkowski@linux.intel.com> References: <20240507114516.9765-1-michal.swiatkowski@linux.intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add check for subfunction before setting target VSI. It is needed for PF in switchdev mode but not for subfunction (even in switchdev mode). Signed-off-by: Michal Swiatkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c index 8bb743f78fcb..fe96af89509b 100644 --- a/drivers/net/ethernet/intel/ice/ice_txrx.c +++ b/drivers/net/ethernet/intel/ice/ice_txrx.c @@ -2405,7 +2405,7 @@ ice_xmit_frame_ring(struct sk_buff *skb, struct ice_tx_ring *tx_ring) ICE_TXD_CTX_QW1_CMD_S); ice_tstamp(tx_ring, skb, first, &offload); - if (ice_is_switchdev_running(vsi->back)) + if (ice_is_switchdev_running(vsi->back) && vsi->type != ICE_VSI_SF) ice_eswitch_set_target_vsi(skb, &offload); if (offload.cd_qw1 & ICE_TX_DESC_DTYPE_CTX) { -- 2.42.0