Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1928948rdb; Tue, 3 Oct 2023 05:41:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2ILQCQnHePob9eKpNOuR82tChgOKxKIU+2h6LUu8RJwypFV2VUjrbIbBBQU6EFMiw+uja X-Received: by 2002:a17:902:a415:b0:1c5:de06:9e5a with SMTP id p21-20020a170902a41500b001c5de069e5amr9694620plq.21.1696336876288; Tue, 03 Oct 2023 05:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696336876; cv=none; d=google.com; s=arc-20160816; b=WNpuvO78Phwz2Hel+PBDYB7jaGLs0KeOOKSozXvSzXGZiunWiaPBrVck/cOZXS7bHC z15J6jKGQaDJmf0eYZINlqH7N5MSMj/qeEY9LxJ/sur7BmjH3jPPNgyxcHpq1uLrsvVl Dv7IM5M41ph6ljWXnTp97PuJI6wqS0Ha515unVdEwiB0FwEFvrRJ2AQ8/rd8JoK5oiMG C6X4y/BD2b20+Oq987tX1SrEjBhb3V+OMqoEbFlwOz+cbn28cGaBEF4FXPIQPft6n899 F8u8y0wWoyxkBlDgIQg+vNSz+jFaIoVfQfR/8jluuv0dlqNxDa67Rdtzg/dp6uvr8PSy BD9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=mZDnB3F0gdjoBIhtOjXAkUv8ykeUSfRWTatz5rHMJZ0=; fh=4cc/wXX0dEBUMUtAktj5f1bMSi+Qt/JipdS8O2hUCaY=; b=DT3vnRejAJFbrSyxVidllMS9MtDsY8rZeSyKAqI8ZeGc1dUDwBXejS1hE1I7+pdCH1 /qUufJ175rJXEfzanSbzlyF3SwzU55Jy73HuhpYtplm250d4h4YyCdg2cAkrLGgJSrKN yAJyU8kPhGbViFGgO/IW5fSjBKX5M70bteskHfMqXO5a3yJMBgZRa0+MIbsMdCnVEWN0 rTAAzOjhkcx8xo1XZNIqgEttHxMk5wCoRWLjkc1MWG0Xmf3+BkKSS8gKdAkIoxYvLkHI M1OPivKCYa/Y7krgaaWJoIg7gl1LM4CCClHEXC2BqMunuHMCQQjnoiPr96aVd26GG9vv BBuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z13-20020a1709027e8d00b001c60c5726b8si1264232pla.5.2023.10.03.05.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 05:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A2596802DF2C; Tue, 3 Oct 2023 05:41:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjJCMlF convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Oct 2023 08:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjJCMlE (ORCPT ); Tue, 3 Oct 2023 08:41:04 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A77ADB0; Tue, 3 Oct 2023 05:40:58 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 393CeLGW11998446, 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.92/5.92) with ESMTPS id 393CeLGW11998446 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 3 Oct 2023 20:40:23 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) 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; Tue, 3 Oct 2023 20:40:22 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 3 Oct 2023 20:40:21 +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; Tue, 3 Oct 2023 20:40:21 +0800 From: Justin Lai To: Andrew Lunn CC: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Ping-Ke Shih , Larry Chiu Subject: RE: [PATCH net-next v9 02/13] net:ethernet:realtek:rtase: Implement the .ndo_open function Thread-Topic: [PATCH net-next v9 02/13] net:ethernet:realtek:rtase: Implement the .ndo_open function Thread-Index: AQHZ8fl23iE5gfcWPUefA6LhXZT8grAvrIqAgAhbNIA= Date: Tue, 3 Oct 2023 12:40:20 +0000 Message-ID: References: <20230928104920.113511-1-justinlai0215@realtek.com> <20230928104920.113511-3-justinlai0215@realtek.com> <714dbb7d-3fb8-481e-aba1-01a1be992950@lunn.ch> In-Reply-To: <714dbb7d-3fb8-481e-aba1-01a1be992950@lunn.ch> Accept-Language: zh-TW, en-US Content-Language: zh-TW x-originating-ip: [172.21.210.185] x-kse-serverinfo: RTEXDAG02.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: 8BIT 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 05:41:13 -0700 (PDT) > > diff --git a/drivers/net/ethernet/realtek/rtase/rtase.h > > b/drivers/net/ethernet/realtek/rtase/rtase.h > > index bae04cfea060..5314fceb72a2 100644 > > --- a/drivers/net/ethernet/realtek/rtase/rtase.h > > +++ b/drivers/net/ethernet/realtek/rtase/rtase.h > > @@ -51,8 +51,6 @@ > > > > #define RX_BUF_SIZE (1522 + 1) > > > > -#define IVEC_NAME_SIZE IFNAMSIZ + 10 > > - > > > > > /*************************************************************** > ****** > > ********/ > > enum rtase_registers { > > RTASE_MAC0 = 0x0000, > > @@ -261,6 +259,8 @@ union rx_desc { > > #define RTASE_IDLESLOPE_INT_SHIFT 25 > > #define RTASE_IDLESLOPE_INT_MASK GENMASK(31, 25) > > > > +#define IVEC_NAME_SIZE IFNAMSIZ + 10 > > + > > Please try to avoid moving things around which you just added in the previous > patch. > > > +static int rtase_open(struct net_device *dev) { > > + struct rtase_private *tp = netdev_priv(dev); > > + struct rtase_int_vector *ivec = &tp->int_vector[0]; > > + const struct pci_dev *pdev = tp->pdev; > > + int ret; > > + u16 i; > > + > > > + netif_carrier_on(dev); > > + netif_wake_queue(dev); > > + netdev_info(dev, "link up\n"); > > No need to spam the log with this. Given the hardware architecture, the link is > always going to be up. > > Andrew Hi, Andrew Thank you for your reply, I will modify what you mentioned.