From patchwork Sun Mar 9 10:46:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Abdul Rahim, Faizal" X-Patchwork-Id: 14008320 X-Patchwork-Delegate: kuba@kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 B78341D63D6; Sun, 9 Mar 2025 10:49:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741517342; cv=none; b=csIA7JYcJ9fx4GMoUv/2mJ7j3P9e5ojnUR/QCgI8+HZtxuZVYN6YSZ/ZEXNYUV9/z12H+o3lZ9CF5NtlA2eosA5K1xiocMh5cqt4b9F9FppuhvgZ7b82K1WP/5FTJIbwkMeeaHOOFWrnT7dRqUxASDEnL4apLvXHmHczYtguqm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741517342; c=relaxed/simple; bh=hN/QywhMLJun4OrvLkXnO07yTy5KjpCaD8AF1n5Ljhc=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=T0IyHasEjWMKCDNb8FZ1T06ViUvmW18ql2beW1X2Tv3bTENxIN58a/YWNpg8Qr5D7GpGB8WosBSnGiyjT+cWz8Aqc17PAZ/cfHgD6wQQq48B2pcMBDgEKsopzcwzNHMu7JSI4bpwnnZru6Am63LCfx71++z/MHvisT/7xRl8uBI= 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=bPYzakOf; arc=none smtp.client-ip=198.175.65.16 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="bPYzakOf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741517341; x=1773053341; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=hN/QywhMLJun4OrvLkXnO07yTy5KjpCaD8AF1n5Ljhc=; b=bPYzakOf+/vYbJxTKgy3acDqHgsVwAskoeDlWelIpiduZnt7o23mJUxN icIgG4gZUX4ctTKtPVzuN3KPQoZ2DKUShKke1nX8HGTlMjz0y0N7x46HB mrWY4hgmeGpyUJ07hdOh03VPsIHfOCTNvcU+Kd9sM85hcRv1KczxLwTUT spGZ/E9Bz2Ve2hGhOoEmZ2d/YVdu3667PMH8SbX1q2lMywQyP9iguyBHi VvkLqMcS7r1n7esf/OqUabxyDx/gwi/ZP7jyFkzO5dOG+FcVEOkTki2QQ X31/2V0/uy6ezyd3xTYf7bZvnfkXkpGK5DpzT653Yw3KMYVGQn0U5Aii1 A==; X-CSE-ConnectionGUID: VdN5oGfFQlSwIJmDNckuAw== X-CSE-MsgGUID: 2BjRrvUFQ06+xZ6uEt0Z+A== X-IronPort-AV: E=McAfee;i="6700,10204,11367"; a="42636221" X-IronPort-AV: E=Sophos;i="6.14,234,1736841600"; d="scan'208";a="42636221" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2025 03:49:00 -0700 X-CSE-ConnectionGUID: 2CRlC2fzQFGRClC2/0+A7g== X-CSE-MsgGUID: ZUIyKCZhRH2hRGPXcuhbHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,234,1736841600"; d="scan'208";a="124655160" Received: from mohdfai2-ilbpg12-1.png.intel.com ([10.88.227.73]) by orviesa003.jf.intel.com with ESMTP; 09 Mar 2025 03:48:53 -0700 From: Faizal Rahim To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Simon Horman , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Furong Xu <0x1207@gmail.com>, Russell King , Vladimir Oltean , Serge Semin , Xiaolei Wang , Suraj Jaiswal , Kory Maincent , Gal Pressman , Jesper Nilsson , Choong Yong Liang , Chwee-Lin Choong , Faizal Rahim , Kunihiko Hayashi , Vinicius Costa Gomes , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org Subject: [PATCH iwl-next v9 12/14] igc: block setting preemptible traffic class in taprio Date: Sun, 9 Mar 2025 06:46:46 -0400 Message-Id: <20250309104648.3895551-13-faizal.abdul.rahim@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250309104648.3895551-1-faizal.abdul.rahim@linux.intel.com> References: <20250309104648.3895551-1-faizal.abdul.rahim@linux.intel.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Since preemptible tc implementation is not ready yet, block it from being set in taprio. The existing code already blocks it in mqprio. Signed-off-by: Faizal Rahim Reviewed-by: Vladimir Oltean --- drivers/net/ethernet/intel/igc/igc_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 71c377cb7a88..fc945c5b7c70 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -6486,6 +6486,10 @@ static int igc_save_qbv_schedule(struct igc_adapter *adapter, if (!validate_schedule(adapter, qopt)) return -EINVAL; + /* preemptible isn't supported yet */ + if (qopt->mqprio.preemptible_tcs) + return -EOPNOTSUPP; + igc_ptp_read(adapter, &now); if (igc_tsn_is_taprio_activated_by_user(adapter) &&