Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1146441rdb; Wed, 6 Dec 2023 09:45:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNC9KPk+PM956a1i+1xaAKo1n2PT7VhVtEy9Sio8rV04VM029GCj6D4lsB9vdjuG816bD1 X-Received: by 2002:a17:90a:bd88:b0:286:c040:e6cd with SMTP id z8-20020a17090abd8800b00286c040e6cdmr1380533pjr.46.1701884747500; Wed, 06 Dec 2023 09:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701884747; cv=none; d=google.com; s=arc-20160816; b=DbJARka83YEdD0/SSuhZ1OUJ+j+J0ktgmqiQQTbtuzIMgTUABmmDo5FaZjgBMM8Pqb ymtf706BS0Znt0yO1ijjrZWtTNae1TvSucNxsjATIivrkh2hJhP388g9sjEXUWPMJax7 qU/3ODwOXOenYGo2pU4XZL4y+Xz2SroJVspcAPqbH2xf69HUDv7oSYw8thTqvfAXak5D S5Xtd6QwqqKB69GNIjHqmXu1gKDTjXU/7dvEH3BnA68eIlblnpus/Y1GDizA45duq4LP W/psnVlYkReHVnp9hkRtRLVbsnOeIhA2fTRhod5/O0pmeNGEwqMqDnEtSvOAcOYFBT8Q yKRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=GE1VPm5btBMd9mwfn4sOjYmloAWowP1CRL1VphR/cGk=; fh=8pPkdATdM5r88CCVlXnFJLga6FID3WL9n5O6dRjCg6E=; b=h82pgr4amrKfFDp2ewgqGfRTONaFjbzmyQHL1QqJbKMlNhIr6ikINjVBeaqY6Wm5O/ PQilbCjL+K3OGv7wg6i48Hqic1gXp/N9STcPqu8fWuwmqKUIHFsG/JQ547IASjMZTvgo pH7EBZC7fxr/5f8irVYr9noGk1O1+swVYC4ilqIFRo3wbqPBdaN/lAlaTxhvUfdU/Jsy zl5c3RPLgtLEFLR7XCzkVMlmZSgIMtNMIKHkbDXbbJz+SN8kvOu0CffnMPLx4FMbryTG gk1vqVwpxQBjevJWjsG/WtbF3nJNo5vQS1f4Mlg3CISHFasV2EgH1rGgt2ZXEbjBXOyR Cx6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=MeLK9sxS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c22-20020a17090ab29600b00286e6c8b27csi189833pjr.9.2023.12.06.09.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:45:47 -0800 (PST) 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; dkim=pass header.i=@geanix.com header.s=default2211 header.b=MeLK9sxS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C6B7F80292B5; Wed, 6 Dec 2023 09:45:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbjLFRpZ (ORCPT + 99 others); Wed, 6 Dec 2023 12:45:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbjLFRpW (ORCPT ); Wed, 6 Dec 2023 12:45:22 -0500 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AE0D122; Wed, 6 Dec 2023 09:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID; bh=GE1VPm5btBMd9mwfn4sOjYmloAWowP1CRL1VphR/cGk=; b=MeLK9sxS71BKJZtcAMnuP3Y/B0MjbmYnI6eXktt1U2K1EcLNjVjwTHXvc14As0RrfZSswJQaF13 /Ob7ps4nSFUGGxxclRMWR65tPVdZ2Z6Y3sHPwdUN5/lNHk2nn2idIjM5u1GJmNUE8d6yQcslIBeUC Azjf8vIu/9olYRiUnpMMDnHcqmzpMqb+1a9Mvjf5hK/QXiApvNBlMuI9R1zqZ5+/Tpmmvy9qlqqAf M2U7LHXfdQmMsw7o0VW9PzMHShVIie/KtGfQ9j3LxX8S+eOPAxdQIGiUXBMmH4RXRvDQx8/aAClwW GOHDT/I1CHqXwaN9HOl5UVLAnZit1PrVn84w==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAvxb-0008mt-Tq; Wed, 06 Dec 2023 18:45:23 +0100 Received: from [2a06:4004:10df:0:b8be:58d4:e5aa:7fa7] (helo=smtpclient.apple) by sslproxy03.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1rAvxb-0009aj-6S; Wed, 06 Dec 2023 18:45:23 +0100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: [PATCH v2 net] net: dsa: microchip: provide a list of valid protocols for xmit handler From: Sean Nyekjaer In-Reply-To: <20231206173543.ag7xb4vhcjknyiyv@skbuf> Date: Wed, 6 Dec 2023 18:45:12 +0100 Cc: Woojung.Huh@microchip.com, UNGLinuxDriver@microchip.com, andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Arun.Ramadoss@microchip.com, ceggers@arri.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <2244A511-6F6F-4711-9BE0-30786B021AE5@geanix.com> References: <20231206071655.1626479-1-sean@geanix.com> <20231206173543.ag7xb4vhcjknyiyv@skbuf> To: Vladimir Oltean , Madhuri.Sripada@microchip.com X-Mailer: Apple Mail (2.3774.200.91.1.1) X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27115/Wed Dec 6 09:44:21 2023) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 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]); Wed, 06 Dec 2023 09:45:43 -0800 (PST) Hi Vladimir and Madhuri, > On 6 Dec 2023, at 18.35, Vladimir Oltean wrote: >=20 > On Wed, Dec 06, 2023 at 05:22:55PM +0000, = Madhuri.Sripada@microchip.com wrote: >> NULL check is missing here. Did here what every other driver does, that uses the = connect_tag_protocol() method. (As per Vladimir=E2=80=99s instructions) Not one of them, does a NULL check. >=20 > Don't just leave it there, also explain why. Message to me? /Sean=