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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham 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 10293C48BD3 for ; Wed, 26 Jun 2019 11:40:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E61A520656 for ; Wed, 26 Jun 2019 11:40:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbfFZLkG (ORCPT ); Wed, 26 Jun 2019 07:40:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:44904 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725930AbfFZLkF (ORCPT ); Wed, 26 Jun 2019 07:40:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C6105AB9B; Wed, 26 Jun 2019 11:40:04 +0000 (UTC) Date: Wed, 26 Jun 2019 20:39:59 +0900 From: Benjamin Poirier To: Manish Chopra Cc: GR-Linux-NIC-Dev , "netdev@vger.kernel.org" Subject: Re: [EXT] [PATCH net-next 05/16] qlge: Remove rx_ring.sbq_buf_size Message-ID: <20190626113959.GC27420@f1> References: <20190617074858.32467-1-bpoirier@suse.com> <20190617074858.32467-5-bpoirier@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 2019/06/26 09:36, Manish Chopra wrote: > > -----Original Message----- > > From: Benjamin Poirier > > Sent: Monday, June 17, 2019 1:19 PM > > To: Manish Chopra ; GR-Linux-NIC-Dev > NIC-Dev@marvell.com>; netdev@vger.kernel.org > > Subject: [EXT] [PATCH net-next 05/16] qlge: Remove rx_ring.sbq_buf_size > > > > External Email > > > > ---------------------------------------------------------------------- > > Tx rings have sbq_buf_size = 0 but there's no case where the code actually > > tests on that value. We can remove sbq_buf_size and use a constant instead. > > > > Seems relevant to RX ring, not the TX ring ? qlge uses "struct rx_ring" for rx and for tx completion rings. The driver's author is probably laughing now at the success of his plan to confuse those who would follow in his footsteps.