Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp4453rdh; Mon, 18 Dec 2023 02:28:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGL90DpSsGzjRP/QQrSVx0BBIbDr2K6qWlCCg11/VY1vt+z8Q6DHE92hQE2hUwru0x80J1w X-Received: by 2002:a50:aa97:0:b0:553:57e0:3e20 with SMTP id q23-20020a50aa97000000b0055357e03e20mr492695edc.32.1702895334322; Mon, 18 Dec 2023 02:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702895334; cv=none; d=google.com; s=arc-20160816; b=poWZhfd+ucKfTodxgbVGf3pOR+8ULtQoKymHbJjWN3ITaEUSg8S2EsueKaq84vh85T 5XWZyR5wwrCc0GYshkr09IxkXsFft+uYafQnYXBCh1A37IfD+NggYqnWCeulXZ79ycuZ o8gI0gLF3fXUXHWMGDZbF6pOZ34LijczNzx+9ri0/bj5lbE/8JuV0jxnGJAo5RuZ49Sm Y9mwSZBI8GnCOKISC1VmEf43S29U2t7EvjKrq/wSQKBSP4nqlzv4kdax+j8/0qLqrmPi 8xo5raZBxzATVQ0Ld0ieuwErDKNktT93La//QyrBN9GgpgoujkrgMjZDotpbezbP5wFX bDkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=1nsJ4pXQTShfa85xI+8aBIwt/LaL399Qayacbv5RU3c=; fh=IYJcvjruGo/ROSo30p5Adi0uNhPR2XdImYJiyUWh+ug=; b=H09wDlSMReDtw6L116kUwwRudS8UTBmU0dx7yJ2MANx6izNZ1HfwAA48/2dWbYBKPy U2SmLo6cL4J427X/fSUXXeF6TCGh7rRXIbZnGhQrs+JxJZbaH2kDf8qZWDPpnsXsidbi e74qrtkojoiHxyMLjFOG1QGCKDIwvRjIc/sblIPenYu5SG5OJOJHwkOGXFv1J23bdxtA G3dycS/r0AicMcAhVZZS20co+MVMvV7+gWl01ZCaiaMTVaYs0bTs7sAPvQY21TuCmYL7 sVl6AvZ89c7v8k/Zgmq6/6RvWa/2ofpjxR68WQArZYfanpuQXm7GYXKClsKVsHgZXNeA EGnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3331-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id eb8-20020a0564020d0800b0054d03d0af9dsi9626479edb.623.2023.12.18.02.28.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 02:28:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3331-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 179931F21913 for ; Mon, 18 Dec 2023 10:28:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FC7F1548E; Mon, 18 Dec 2023 10:28:10 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC5E418643; Mon, 18 Dec 2023 10:28:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3BIARif063383341, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3BIARif063383341 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Dec 2023 18:27:44 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Mon, 18 Dec 2023 18:27:44 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 18 Dec 2023 18:27:43 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Mon, 18 Dec 2023 18:27:42 +0800 From: Justin Lai To: Jakub Kicinski CC: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "andrew@lunn.ch" , Ping-Ke Shih , Larry Chiu Subject: RE: [PATCH net-next v14 06/13] rtase: Implement .ndo_start_xmit function Thread-Topic: [PATCH net-next v14 06/13] rtase: Implement .ndo_start_xmit function Thread-Index: AQHaKbubsEorOK9BY0aC7C+4Ofl+iLClijsAgAlZf5A= Date: Mon, 18 Dec 2023 10:27:42 +0000 Message-ID: <1855bbf9885e4cae86aa32d401296b1e@realtek.com> References: <20231208094733.1671296-1-justinlai0215@realtek.com> <20231208094733.1671296-7-justinlai0215@realtek.com> <20231212113212.1cfb9e19@kernel.org> In-Reply-To: <20231212113212.1cfb9e19@kernel.org> Accept-Language: zh-TW, en-US Content-Language: zh-TW x-kse-serverinfo: RTEXMBS06.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback >=20 > > + if (ring->cur_idx !=3D dirty_tx) > > + rtase_w8(tp, RTASE_TPPOLL, BIT(ring->index)); > > + } > > + > > + return workdone; > > +} >=20 > > + /* multiqueues */ > > + q_idx =3D skb_get_queue_mapping(skb); > > + ring =3D &tp->tx_ring[q_idx]; >=20 > As Paolo pointed out elsewhere you seem to only support one queue. > Remove this indirection, please, and always use queue 0, otherwise it's a= bit > confusing. Hi Jakub, This device supports Multi-Queue.