From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from www2881.sakura.ne.jp (www2881.sakura.ne.jp [49.212.198.91]) (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 3FB73344D90 for ; Fri, 17 Apr 2026 19:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=49.212.198.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776454349; cv=none; b=pdz7iq8ilVozzxN91hbFplEs573LERUVuk7+xMPeyO0XcI5gvys/8Hubx6FgEKFRUY/M+9zug1zvcxWreqAEqWQJF2eIqt6DeWzAK6k2YxmzxOtrZCf2a+wLutkL1i8yUn3kxUEctE0a68oD4FIWdsWso/A02GldBZl8cHxqQdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776454349; c=relaxed/simple; bh=2Z0OdAURwgT+qe4BAmqYyytYWi9HxjXEV5FnxRxBexA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AX1aktiBsdnQnCpYK6PXKYYc9oR+LeJ7BLPq3p3q6Y4UN/lJi8E8OAVNpmhKdRpSEZJiNGg+yeKxp/E0mEXccwTpgJ/QaYeElvIyN4H8jGnA0bbsV/MaKTvytlzNJmtnfZ6ysiWuw3eprVIb6tPVITJ837SHMrGGIkNkc2Q+thk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=enjuk.jp; spf=pass smtp.mailfrom=enjuk.jp; dkim=pass (2048-bit key) header.d=enjuk.jp header.i=@enjuk.jp header.b=hpWy3WiY; arc=none smtp.client-ip=49.212.198.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=enjuk.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=enjuk.jp Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=enjuk.jp header.i=@enjuk.jp header.b="hpWy3WiY" Received: from x1 (232.154.13.160.dy.iij4u.or.jp [160.13.154.232]) (authenticated bits=0) by www2881.sakura.ne.jp (8.16.1/8.16.1) with ESMTPSA id 63HJWP8H050705 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 18 Apr 2026 04:32:25 +0900 (JST) (envelope-from kohei@enjuk.jp) DKIM-Signature: a=rsa-sha256; bh=utRh9a/0NCmRtfIj6BOI/Rq8q2GQK8NiHIflVF64Njg=; c=relaxed/relaxed; d=enjuk.jp; h=From:Message-ID:To:Subject:Date; s=rs20251215; t=1776454346; v=1; b=hpWy3WiY26fADuZq5uUSEyPSMfsdSz+YfQpbGg+nu0GQvgdU9a8i5yATXT5+7Sti vXYkG9goZq1WxFIQfLL39D+h0ohQYHhP5ea1bi6RGxxYIknU8Mt8al32nYCKe5A8 IhkgEJpcnOlqpGVtndQBgZ0S3oNs9U891/wDzeWYFW5V4yK+PyRc4BY125cSCd19 vKyv0CNiK/4AxFiNZl6riRnkoykjhnPMtqY1XW2K2vNCWXv4X82xO086qToFTxVl uva0t2K3+aKIWcFscwLvRXQa+9Av2JdCKN7/qC6DlIlUSvx/HtWLNiJzPH2Gxse5 /76+vHNneHwS6ls9GnYLEA== From: Kohei Enju To: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org Cc: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Choong Yong Liang , Vladimir Oltean , Vinicius Costa Gomes , Chwee-Lin Choong , Simon Horman , Kohei Enju Subject: [PATCH iwl-net v1] igc: set tx buffer type for SMD frames Date: Sat, 18 Apr 2026 04:31:47 +0900 Message-ID: <20260417193223.291093-1-kohei@enjuk.jp> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sashiko pointed out that igc_fpe_init_smd_frame() initializes igc_tx_buffer fields for an SMD skb, but does not set the buffer type: https://sashiko.dev/#/patchset/20260415025226.114115-1-kohei%40enjuk.jp Since igc_tx_buffer entries are reused, a stale XDP or XSK type can remain and make TX completion use the wrong cleanup path. Set the buffer type to IGC_TX_BUFFER_TYPE_SKB. Fixes: 5422570c0010 ("igc: add support for frame preemption verification") Signed-off-by: Kohei Enju --- drivers/net/ethernet/intel/igc/igc_tsn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c index 02dd9f0290a3..52de2bcbadbe 100644 --- a/drivers/net/ethernet/intel/igc/igc_tsn.c +++ b/drivers/net/ethernet/intel/igc/igc_tsn.c @@ -34,6 +34,7 @@ static int igc_fpe_init_smd_frame(struct igc_ring *ring, return -ENOMEM; } + buffer->type = IGC_TX_BUFFER_TYPE_SKB; buffer->skb = skb; buffer->protocol = 0; buffer->bytecount = skb->len; -- 2.53.0