Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2752613rdb; Mon, 4 Dec 2023 06:44:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMaK81h2S809zexfTxD0ZzmzToszhafEkWV6yZW8zwnNr6DOwUMtuczEhoHPR4YwsrbpqI X-Received: by 2002:a17:90b:1652:b0:286:2e8f:4780 with SMTP id il18-20020a17090b165200b002862e8f4780mr2807251pjb.10.1701701040134; Mon, 04 Dec 2023 06:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701701040; cv=none; d=google.com; s=arc-20160816; b=blK7N1PJSQgB/34xtyw8MmAOTkrPLbzqYiXY7Aw/s0ejOZnz9NLKJ334AVQQlyD0gj PtBP7KvgqDWnC3Gs8ezkP2YiZvNAaL1yeEKNAMiuv0Cx6FTw0Yyozb8+JBb1TtkvpOrj aSsaR3yLjie2sAJ7Zyrn4lb+4HCwR6/QfKfQmSpcnTgWVOP64bN5+MpQsDiU9mi6/Bez 1K4ZjnSj/nVX8C3wvCAHLGrKZVOmcNTYY5X5ObTcGrAM84pnxm9fIqwAj43N+xuvNMnX OD7jZMRzD5I3SHkRhkSpDjwRt5sJ4iZCJJkRdod5O6FkAjvQpJFcrre7WMgAHJ/ehzpG eP1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:subject:cc:user-agent:mime-version:date:message-id; bh=DxH843sughm1b/nfOVMsJ+AaHv9rFjF1hiwJqo99mQU=; fh=NnPnXXaEhs6e+1zSwDGXwNjNHAtlfoUkO/kge/fuwHU=; b=qDtVmJ7Cox/6qvxjQqnnLfHrGHWgRPnJ7QaEudqwHGI4LPjY/HUyHNGlKdRKIyrAGZ jj4fqKMaTUVfHmvIAer9BcIGffTydx4hCcVDqB3C1GKrG/UzxCgbln/Z1vxxG3wiuEoK LG4ZE3WDdaOf0c4Zm2RLd5dUCy0MZbPP8A8PWjMynF8nSAs46UEZlCSojsFHVilibea0 3WrPspGfwCZwC2dUpe5kntAiiEu6dnOQ3gpsosbQqBeBV3NAscYpgu6PqTIeDQ6tXkD7 ZiRr9XblwxkKtZpB9NHQiysfX0c3X8LSfEQRM1qQ9KZEmndixAW+AgJ/7/pFxHBqEzq/ KJkg== 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:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y17-20020a17090322d100b001cf6a664aa8si3219995plg.571.2023.12.04.06.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:44:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1A1B2805A5CE; Mon, 4 Dec 2023 06:43:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234335AbjLDOnm (ORCPT + 99 others); Mon, 4 Dec 2023 09:43:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233602AbjLDOnl (ORCPT ); Mon, 4 Dec 2023 09:43:41 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E112B3; Mon, 4 Dec 2023 06:43:47 -0800 (PST) Received: from kwepemm000007.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SkRB11PnYz14L99; Mon, 4 Dec 2023 22:38:49 +0800 (CST) Received: from [10.67.120.192] (10.67.120.192) by kwepemm000007.china.huawei.com (7.193.23.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 4 Dec 2023 22:43:45 +0800 Message-ID: <7f9fffe3-2fb8-41a2-9eb0-4adf91566a21@huawei.com> Date: Mon, 4 Dec 2023 22:43:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , , , , , Subject: Re: [PATCH V2 net 2/2] net: hns: fix fake link up on xge port To: Wojciech Drewek , , , , , , References: <20231204011051.4055031-1-shaojijie@huawei.com> <20231204011051.4055031-3-shaojijie@huawei.com> From: Jijie Shao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.120.192] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm000007.china.huawei.com (7.193.23.189) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 06:43:58 -0800 (PST) on 2023/12/4 18:19, Wojciech Drewek wrote: > > On 04.12.2023 02:10, Jijie Shao wrote: >> >> +static void hns_mac_link_anti_shake(struct mac_driver *mac_ctrl_drv, >> + u32 *link_status) >> +{ > It would be cleaner to return the link status than using output arg IMO > Yes, it's a good suggestion, and this is modified in v3