Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp620553ybt; Sat, 13 Jun 2020 15:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfsTvgPOoCV+vJx99jgeB4UByjM1ea1aytAO+sJtfK3rs/o12M3M1Ou4/kh3KXaI8np3ci X-Received: by 2002:aa7:d7cc:: with SMTP id e12mr17250909eds.70.1592089051957; Sat, 13 Jun 2020 15:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592089051; cv=none; d=google.com; s=arc-20160816; b=eNp6vwFYKP3zlqr9LMxT4K9rpLUAtOBqqfE0VrpxUl3lSA17KqUXS3QpNlauh8BOCB b4gSAXHCiav9HeTSxPNYPaQhBxi+G1nKQFvS453MIoOtzFC8gT9aHV2ZyDGIJ6MvT4NZ AB+K9m1drYfJ4/ldVhhaxNO6nBFbZ4R7s9obthETwQGmdCLZR9NPs5dIw4nkSKDB/asY M0U9hem32ttj6tJmYLWastmuaEiMKAahr5YQmFV7AwaNxQgBhPPP7J5lLWMo6a7NfICp Ykf80tlgGjx8CLeD6BZbdBEwN0go2IjU6rVXdvNGALRWfik28hwANN+Tl0MoXrOIxENf QTfQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=/zs0CUi+Oz0j3LEZd44hCt+whNDO8jzzRMXHT/xwzzo=; b=Tao6kET6z0BB9ptudIjmSdIwLmNX4RONoxz33UxcBa/hEaEKY45jjTzJRQPijSHhU6 AtxKGXK0Upyx6MK7CHDFmdjpoDvQ4oEvAFHwk50xkX2IrarJ0hu9aMiU9qW0bS7rCu+M yJCCg/tXdUwwyN9W52jQdZ/kC6Q4LJIM/aS3k7ktbr8TLA8p15rHwTW8mlsngJY3C9Yu PIjNqXNaeyL15vIyecvZJEtqvYXu3a1bclubUhHoqA59+zWL2iOS5sjOenayH3Z2V5d9 X8dq4hXH33lGFYDkPMELjaGyFRKzifj/I0maB1Mr8RLma+M443OwJe56fEtKg/wJArNq 69eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@uniroma2.it header.s=ed201904 header.b=+2tRaCtZ; dkim=fail header.i=@uniroma2.it header.s=rsa201904 header.b=ie30d2N7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=uniroma2.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si6064033edq.195.2020.06.13.15.57.09; Sat, 13 Jun 2020 15:57:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@uniroma2.it header.s=ed201904 header.b=+2tRaCtZ; dkim=fail header.i=@uniroma2.it header.s=rsa201904 header.b=ie30d2N7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=uniroma2.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbgFMWyS (ORCPT + 99 others); Sat, 13 Jun 2020 18:54:18 -0400 Received: from smtp.uniroma2.it ([160.80.6.16]:42851 "EHLO smtp.uniroma2.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbgFMWyR (ORCPT ); Sat, 13 Jun 2020 18:54:17 -0400 Received: from smtpauth-2019-1.uniroma2.it (smtpauth.uniroma2.it [160.80.5.46]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id 05DMrxR4019350; Sun, 14 Jun 2020 00:54:04 +0200 Received: from lubuntu-18.04 (unknown [160.80.103.126]) by smtpauth-2019-1.uniroma2.it (Postfix) with ESMTPSA id 56E29120069; Sun, 14 Jun 2020 00:53:54 +0200 (CEST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=uniroma2.it; s=ed201904; t=1592088834; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/zs0CUi+Oz0j3LEZd44hCt+whNDO8jzzRMXHT/xwzzo=; b=+2tRaCtZyfIdpFZnhIrndpLvrS9HwWUL+4SKJaDpnV88xBZ1ekyo3yRw6iGPQ4TE94BWGa whgux0Qtuoe7yACg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma2.it; s=rsa201904; t=1592088834; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/zs0CUi+Oz0j3LEZd44hCt+whNDO8jzzRMXHT/xwzzo=; b=ie30d2N771yY6UC4FH/KLpB+OZIKYdffd3BV3Bcv0bP+eLQTWYDcZwmUdkTF1aOhbtQqOH leoG4MKAfNO8EfWW5OlguXjY7cfm6bmm092PAeLrVzMXooGboKiIVZ5cA8C43MclHPGGqv aMuo/TZFSsX6vDT3gUpe1BR3dFVFqRS/Kexwbbhf+HBhCmNhLx6ycz7yTs6QQ7z9Ig4I5W 7SDS/jMh5fziZzfwrj3zIoJDhD1URwY6GLH5W8+L6eTldmoDhvSRSRWx5XRQ+Vw9/fKQno 4vlbAsYGoQEMYvSe92W1OlBZMd4SYhlpuf7m0rVR6XpPO7QFiSIvrxRjr05Szw== Date: Sun, 14 Jun 2020 00:53:53 +0200 From: Andrea Mayer To: Stephen Hemminger Cc: David Ahern , "David S. Miller" , Shrijeet Mukherjee , Jakub Kicinski , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Donald Sharp , Roopa Prabhu , Dinesh Dutt , Stefano Salsano , Paolo Lungaroni , Ahmed Abdelsalam , Andrea Mayer Subject: Re: [RFC,net-next, 2/5] vrf: track associations between VRF devices and tables Message-Id: <20200614005353.fb4083bed70780feee2fd19a@uniroma2.it> In-Reply-To: <20200613122859.4f5e2761@hermes.lan> References: <20200612164937.5468-1-andrea.mayer@uniroma2.it> <20200612164937.5468-3-andrea.mayer@uniroma2.it> <20200613122859.4f5e2761@hermes.lan> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015 X-Virus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, thanks for your questions. On Sat, 13 Jun 2020 12:28:59 -0700 Stephen Hemminger wrote: > > + > > + * Conversely, shared_table is decreased when a vrf is de-associated > > + * from a table with exactly two associated vrfs. > > + */ > > + int shared_tables; > > Should this be unsigned? > Should it be a fixed size? Yes. I think an u32 would be reasonable for the shared_table. What do you think? Andrea