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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED95CC6FD19 for ; Thu, 16 Mar 2023 04:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229596AbjCPE4s (ORCPT ); Thu, 16 Mar 2023 00:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjCPE4s (ORCPT ); Thu, 16 Mar 2023 00:56:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 970786B322 for ; Wed, 15 Mar 2023 21:56:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 34443B81FCA for ; Thu, 16 Mar 2023 04:56:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91361C433EF; Thu, 16 Mar 2023 04:56:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678942602; bh=gf5lYMbsr+VUZ1qlHxtgc6FyWGqk1KIdmM+A+mlDPuI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=okYQNS1RqMTnuIdCfE5TJh6J5YH39x2nO3uqusEXbze4dB6lt7hW3uXtSSP5Rhqpb 61Enu0dtizeZp07WKG1Dtf6UB5jOYFVSb/kUsmEcwmB4ut7NdwKilrpqNd600PEQn+ Bi8WAGdfxBt7qWH5vz6Y4U7GoIiGEYzYQA2nlZYRATTAzH9FOC/BIQrDERgVURzMpF H1AIPy7ucQ9MwXWjZq500ykGj9zbOGqHNDQF0CrveEkDt7VJ2A7OaumqDkwtJYGBUk skssszbVhBCjKGAjr6EizxOxp34nLm5kBARk/UTu+EAkr25Vb2a3Cxz8shwOVz1+eA PHb/3BnN22eqQ== Date: Wed, 15 Mar 2023 21:56:41 -0700 From: Jakub Kicinski To: Saeed Mahameed Cc: "David S. Miller" , Paolo Abeni , Eric Dumazet , Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Rahul Rameshbabu Subject: Re: [net-next 05/15] net/mlx5e: Correct SKB room check to use all room in the fifo Message-ID: <20230315215641.24119b38@kernel.org> In-Reply-To: <20230314054234.267365-6-saeed@kernel.org> References: <20230314054234.267365-1-saeed@kernel.org> <20230314054234.267365-6-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 Mon, 13 Mar 2023 22:42:24 -0700 Saeed Mahameed wrote: > Subject: [net-next 05/15] net/mlx5e: Correct SKB room check to use all room in the fifo net/mlx5e: utilize the entire fifo > From: Rahul Rameshbabu > > Previous check was comparing against the fifo mask. The mask is size of the > fifo (power of two) minus one, so a less than or equal comparator should be > used for checking if the fifo has room for the SKB. > > Fixes: 19b43a432e3e ("net/mlx5e: Extend SKB room check to include PTP-SQ") no fixes tag I thought we've been over this.