Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1499408ybl; Wed, 28 Aug 2019 16:01:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp1oWK18dk5lG5XGTT8XdpRSlJ7WYg9hJUDELo0PvqWf55bbVFSDuKOQ1PBR4cT6T5qm65 X-Received: by 2002:aa7:9a5a:: with SMTP id x26mr7351028pfj.47.1567033264182; Wed, 28 Aug 2019 16:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567033264; cv=none; d=google.com; s=arc-20160816; b=N9LZZqaz8ABC1KO43ZiKoyx2cg9z0YCPFhxIHBN1v9sdymnwbUFWK6uZ6AdPdbUoED dtAwKmZ5M/NPP7YD2DjICeMlEgVlVctksk9+TcIDSVDC80SWxoeh89dAofycZAtKNCSO z98Xz8uHE63+4bU2lnCZ4beiW005VPSr4JnVGTdu7trDbeyUWjcdSja/V6MS+fCvxpd1 9AG+n8RC5/r0ZFhBxqr7mrufKmPq+eVdZEBH5S3Qhkm4cyP+8Gjdyt8IrgJwDhsn1z1L 5bK6BBBf2VS8LvL7z3F3vf17o7zLSoerAQ5wowgWYyUOHuloWCwcwoc8/CtrqH2P8BYC bnpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=MWIFKIzouiKNiGjOqNU3Lg2whivTBv+XNz2yxpVpVdk=; b=Sqic5IDA5b4naUC5RQdDk1CHYZPjW4Srv7/ct8iblcDQ40mOunHOEOxdZhWfnjM2iY Bar1H/2QOQ56RpEL7S+yDhPq8ahoDnkF94owJjABP6lm1gZPDCgmM9kPpQ13ne0Fwfnt ZHARpQt+vIreVHgm7dsTVjiVCQm1XddPdJoK4sdgFXydMVfCZkL2aDx8RnqwNRYbUeNN GBh5JeBkYEt6uMUOyjb2rJI8ra1n3L7gIdzlrWY5HDbfFpAJS7M8ngKXEr+05b0cJFq4 V55Vzycoi0zfauYZJMUqPvliMZBJvTNMyTQJKMc35Xyw5SGoVPYifIL2wyGyPqGcvMWf TO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=rczdY01A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si381284pgq.119.2019.08.28.16.00.47; Wed, 28 Aug 2019 16:01:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=rczdY01A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727009AbfH1W6e (ORCPT + 99 others); Wed, 28 Aug 2019 18:58:34 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:34443 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726941AbfH1W6e (ORCPT ); Wed, 28 Aug 2019 18:58:34 -0400 Received: by mail-ed1-f68.google.com with SMTP id s49so1842399edb.1 for ; Wed, 28 Aug 2019 15:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=MWIFKIzouiKNiGjOqNU3Lg2whivTBv+XNz2yxpVpVdk=; b=rczdY01AKrKa0uF52azBBxJb1SYipY6u79S6FnAjJZbqKBaWR4bEt5Q1F/z+gPOmV8 2LgNnTLUtcsNPBxAimDjDrKhK0XRpX2UbKs39RWkqXGG9vFmXddS5Chm8nmO/ctPLS/W 7Q3E4uzkWIt60Md8eSjv8qlbJC/ug1geug3/TgIL/4PFwjIPXZfAbBt8c5t0Zy4vZbJE zAOpSAmCM9V6Pw/rW6+TDwunxdFqfAuY2uHJ24RM3iuy1UP6oeVKO7wlEexYBwI5EEZG aCfhrSzLY3b5JnFMCUmlK4fswrNsctSFSCY1XQ93oEnydxJoaICx83awfv8BwNZUXeMX 4aag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=MWIFKIzouiKNiGjOqNU3Lg2whivTBv+XNz2yxpVpVdk=; b=KABrNWvMQL8Gm5+mkriu8gplizDBt7cr8rQoFvA/x/GuuZoGqo550bl289bs6XHE9O 2NXw6Aqpg00UCCyl/Ucu+P57SGjUOscwlYkLKlba7YOpBMpQqC1jac1LKHqUxPALW/9z jueY03VDpli2YYF5kYdQDMQVQj9ZrESt5hCCKKjkGBJOXNNzOre7EAYwBy4SU/dQpq2W 76Z/DoD5i8/5M3m7nnv2CjWmJQMBv6c6bmBWQuk41hhHHrgO9kSw84d0qA4XUHBdZCPH 76t9vybdc2XfCIMIhkiKk0HyixLV4FRStMdJbGDGiNG4J11CrmY55raW5H87PTYDsfpa N/kQ== X-Gm-Message-State: APjAAAXCbVbFxKX8AYg/0Ngjw1DItmkoUD7N/ONcDooVkL/W4Y7EOpu2 kp9DdShcGe6e/pxBZOnjhhWu3ceafd8= X-Received: by 2002:aa7:da4d:: with SMTP id w13mr6716505eds.224.1567033112940; Wed, 28 Aug 2019 15:58:32 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id k15sm101111ejk.46.2019.08.28.15.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 15:58:32 -0700 (PDT) Date: Wed, 28 Aug 2019 15:58:09 -0700 From: Jakub Kicinski To: Thomas Bogendoerfer Cc: Ralf Baechle , Paul Burton , James Hogan , "David S. Miller" , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next 05/15] net: sgi: ioc3-eth: allocate space for desc rings only once Message-ID: <20190828155809.5c155bee@cakuba.netronome.com> In-Reply-To: <20190828140315.17048-6-tbogendoerfer@suse.de> References: <20190828140315.17048-1-tbogendoerfer@suse.de> <20190828140315.17048-6-tbogendoerfer@suse.de> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Aug 2019 16:03:04 +0200, Thomas Bogendoerfer wrote: > Memory for descriptor rings are allocated/freed, when interface is > brought up/down. Since the size of the rings is not changeable by > hardware, we now allocate rings now during probe and free it, when > device is removed. > > Signed-off-by: Thomas Bogendoerfer So the rings still get freed and allocated from ioc3_init() but there's a set allocated from the start? I guess that makes some sense.. Most drivers will allocate rings in open() and free them in close().