From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21D2DC433F5 for ; Wed, 8 Sep 2021 16:40:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 060BA61139 for ; Wed, 8 Sep 2021 16:40:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349756AbhIHQlJ (ORCPT ); Wed, 8 Sep 2021 12:41:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:45774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349390AbhIHQlI (ORCPT ); Wed, 8 Sep 2021 12:41:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F34D610A3; Wed, 8 Sep 2021 16:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631119200; bh=KEWNtKA7VMqaiJhGGOigNvNnkRw/QDb1VKK+BNY+jJM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dE3hyrb6eGc9B5WTYEVmDBx4KpjZvV95VLdePnoNJVUi+//+wjyZT4kJbZoas8yAf 3zuBPLCzEtD5s+V0cVTIk1DnOEiI+smDWq65Oze+433z2P5uaoPjVS48eIpFumtuj6 +hT6c2XBfAZcw74fQIhjzDp6zPNrn9OtrmiNbrvoB/Q8JjpJ+9fT1OyIFGKpyD6u+0 w30ZX44vBnbj9vYDmDwRIR9D8G7m3d80ikgbQPvlp+qNdVA5H8uPpjMXp/cxKNWciA vRRVUzn+O0tSe4qHzDzv8/YKYVCUOf5xWadusfqID1DPoHDi4T4XnJzR2+X+R2vPd5 ysZmGJzw+hArA== Date: Wed, 8 Sep 2021 09:39:59 -0700 From: Jakub Kicinski To: Saeed Mahameed Cc: "David S. Miller" , netdev@vger.kernel.org, Aya Levin , Tariq Toukan , Saeed Mahameed Subject: Re: [net 7/7] net/mlx5e: Fix condition when retrieving PTP-rqn Message-ID: <20210908093959.59e40d36@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210907212420.28529-8-saeed@kernel.org> References: <20210907212420.28529-1-saeed@kernel.org> <20210907212420.28529-8-saeed@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 7 Sep 2021 14:24:20 -0700 Saeed Mahameed wrote: > From: Aya Levin > > When activating the PTP-RQ, redirect the RQT from drop-RQ to PTP-RQ. > Use mlx5e_channels_get_ptp_rqn to retrieve the rqn. This helper returns > a boolean (not status), hence caller should consider return value 0 as a > fail. Change the caller interpretation of the return value. It would be really great to turn down the dial on the abbreviations and add some user-visible impact, as is best practice (some would say a requirement) for fixes. I've been following the PTP work in mlx5 a little bit but I have no idea what a RQT is and what kind of issues to expect without this patch.