Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3659405rdh; Thu, 28 Sep 2023 20:35:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBK8q6qOpe8lo9AgSWigBgKYsoHdOaJDFhpG9KgshCW7sx/2URNYu10mzcJ5F7oWwb2Vq+ X-Received: by 2002:a17:903:22ce:b0:1c3:cee1:cc8e with SMTP id y14-20020a17090322ce00b001c3cee1cc8emr2917912plg.68.1695958533875; Thu, 28 Sep 2023 20:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695958533; cv=none; d=google.com; s=arc-20160816; b=q1dfB1cmXCJ164XpWVgdGSlDmK+mfGjtF6FEYf1fl/h81A7LMsQhqNQBU4+siwdcp6 TGp6g1YXmdV79TocLTkJ8QUsmd6SMZZYsvCrMqR6subh+1gHudt3zjS8pikf7jjHxlFv qR8ywuYFLHNmyX4GQeB2l5U/iwvZ1RxxRLuWwrF4iGcQd92F5ApwnsyLZBNbxTvLHqwS 5QyLuKmH1UPeOYI1Hj/GwNzEjHG1dPr2DI0Syb0yxV3iDxyrcfLlT0jmVFrxJaxoUK2x zXIN8372VxMCZMmMscajFUa8+dkJZaM4b56rXCibRMj9FsDjRiOxCH5d7DPDfVSX+tsg uRRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/gAK+0HU4BRJbpDbE0lx3+xHhzKN8MJD+iMJ8Z2LG5c=; fh=hZy4ahsM8U5spIN2NpNcrVPcK8Lp2NL0kY9R7q4fQGk=; b=V0sELos3K3BYngOmGZarGUADynOXIebYg+35jkB3/9Hg2/ZLokjcSe1U5txqR81m2Y HPxOLECj55bxyH39HCjg2gznLuyRshdCZimm4fQ4lgbQNzdmZxGr3Wk6ZoCpOWcBsca1 E92YAORjSErbJ/33czCDThxlcz0tW4lXx3xJzf+tVRacPdv3VFyW0eRSxcSO5BsYDyCy MiuiikZZku5AQ6ugsa/q+Yc+3TAyTyPe6ayWWWVGvZxCnTe+6/TS66oyKMnyodD20Zya OSzoJSWdaJqw5bb7wJrp/shsnKj0SxjXiG6Y3tbF2gpbE/cVKXgEZCYEzUspUbxoHVc0 o2Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6YfhPlsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d5-20020a170902654500b001bb6d711625si13942306pln.279.2023.09.28.20.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 20:35:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6YfhPlsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8ABDB821823D; Thu, 28 Sep 2023 05:57:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232588AbjI1M5f (ORCPT + 99 others); Thu, 28 Sep 2023 08:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbjI1M5e (ORCPT ); Thu, 28 Sep 2023 08:57:34 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B11B180; Thu, 28 Sep 2023 05:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=/gAK+0HU4BRJbpDbE0lx3+xHhzKN8MJD+iMJ8Z2LG5c=; b=6YfhPlsRClQsXgn5a+7EhGiYL0 rgJ66LHggseErlxf/K8GhMXe6ioHrM10HSWjXgR/gcwhFrEZcicF6lyOEoacQvPLGXoHtzecVDmZ3 kxuNJVwfiu/96/A5Ne/4JJdIAAYHOMwVkwqx87ZIaQhiNhRmor9XxUYeljFSPjW0b1QQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qlqZt-007k9v-14; Thu, 28 Sep 2023 14:57:13 +0200 Date: Thu, 28 Sep 2023 14:57:13 +0200 From: Andrew Lunn To: Justin Lai Cc: kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pkshih@realtek.com, larry.chiu@realtek.com Subject: Re: [PATCH net-next v9 02/13] net:ethernet:realtek:rtase: Implement the .ndo_open function Message-ID: <714dbb7d-3fb8-481e-aba1-01a1be992950@lunn.ch> References: <20230928104920.113511-1-justinlai0215@realtek.com> <20230928104920.113511-3-justinlai0215@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928104920.113511-3-justinlai0215@realtek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 05:57:39 -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