Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1207040ybt; Sun, 14 Jun 2020 14:26:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/7E72nZ30riElJwCYLmupDrKbi6bg/81aTz+Dx5JfC4XdaloS5GDP81WTCYESbqVBOR+y X-Received: by 2002:a50:ee08:: with SMTP id g8mr20250301eds.267.1592169970588; Sun, 14 Jun 2020 14:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592169970; cv=none; d=google.com; s=arc-20160816; b=m7wJMslIIIBuLd+zuWN2acP3zNULuM6/WBvPpENA5iyLa3nHY9LhAkzOO0pb0oLnDx VFUHiNAD6yrFSVw2fljgg3Rlxx7MEQigZR1gA4gUmOej5e1Wje54NaFI455XW+ce0Z1J JW4b9t+EAa1hYXMKfhb11JZmfGYYSzo1o2S+NRAcMCTOisW2z4QCT22fH2WamDtdMIJD 2jzN3xW9jyezpwW9J2n6GWF4B+Y2hfZqSex/qXtbv24M6S3Kc8oczKr6Xg7QrIzeXF/d 94zf6hIdZ+yY8NEALvWON4uv0IUjl70V/5A3D/u/kwrU6WVmUV2bcuxc2MzC5cR6/F0c +aJQ== 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=kx73yPN0vHM7ch4flQNK0LbOwii+DIdepw9ya6KsG+4=; b=XdJcvrzWcnek7Flc36/f71tYzgMebtebts4pN13pgt+fkCVM2JGFCOVaW1wUxbCpJ+ O4Q3EMix9NXInX3yo5wal+6B9+urqY0LxgiJXxjZBNR1FT5Bd4lAItdnJEROrfes3klD DYqvThMDuAaI3+37Y3PmxuCf4P29yVDhPsfH2vYLkLN9Qel8bRaftxyMuNqtYMgd9MCf Ip4IJKPEgrR36MCkdD2VRrmrm66MKvfMZ2rwG4JcyplQulG8BtPdz76iHxgIfUWZxB06 nMXoXizJUhk0gdy1zm8x+SUNwGERuO61KEkzLRy/PDik9BYNO3dwGXUfqKyzB9n1qBVP KRBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@vger.kernel.org; dkim=fail header.i=@uniroma2.it header.s=rsa201904 header.b=fWHiesOO; 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 w6si4736944eja.471.2020.06.14.14.25.46; Sun, 14 Jun 2020 14:26:10 -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=@vger.kernel.org; dkim=fail header.i=@uniroma2.it header.s=rsa201904 header.b=fWHiesOO; 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 S1727924AbgFNVXx (ORCPT + 99 others); Sun, 14 Jun 2020 17:23:53 -0400 Received: from smtp.uniroma2.it ([160.80.6.16]:43946 "EHLO smtp.uniroma2.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbgFNVXw (ORCPT ); Sun, 14 Jun 2020 17:23:52 -0400 Received: from smtpauth-2019-1.uniroma2.it (smtpauth-2019-1.uniroma2.it [160.80.5.46]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id 05ELNUUM015920; Sun, 14 Jun 2020 23:23:36 +0200 Received: from lubuntu-18.04 (unknown [160.80.103.126]) by smtpauth-2019-1.uniroma2.it (Postfix) with ESMTPSA id C578E120925; Sun, 14 Jun 2020 23:23:25 +0200 (CEST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=uniroma2.it; s=ed201904; t=1592169806; 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=kx73yPN0vHM7ch4flQNK0LbOwii+DIdepw9ya6KsG+4=; b=hr6ecuOmuCy65Cu//Kz5PKqgoWwK18CtiSwbd3ekSmtPTBr0ayjSvsPwYRDWj4thSht3kS aM4h2kwUg0A0+eAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma2.it; s=rsa201904; t=1592169806; 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=kx73yPN0vHM7ch4flQNK0LbOwii+DIdepw9ya6KsG+4=; b=fWHiesOOVizZ9H6kBsUBuxcVJ2X5IdMsXdzmyNaa9T6SeSKjwdKldtJdXKUhqoLNUNleJr 2tRXIcPr/1DywcBe4UW2gFdjXqO2qS3XSQtSUD/oRz7jrnHyLXTt1WsSBzPGbYyaw/a0wd QOg+INcESm9G0grvRj+iR9KArQQeZIOHuSTw2cOlqLBQ0MUGwUzfg2TNvNJNqBfKb3MWCT BvQg7aS6rjPTPyzwgB3LJhOTbynxHLw5w+phsogazf+4ptYusW+T75Jn+An5Dspd7TsnKo gma3ea1o0O70GPnt3vcIvLpnb5cq/kby0Ou6H/wwpK/IIIvwZ7vZtZ8JRq+r5A== Date: Sun, 14 Jun 2020 23:23:25 +0200 From: Andrea Mayer To: David Ahern Cc: Stephen Hemminger , 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: <20200614232325.c710c9c2e71f66202b51ee46@uniroma2.it> In-Reply-To: References: <20200612164937.5468-1-andrea.mayer@uniroma2.it> <20200612164937.5468-3-andrea.mayer@uniroma2.it> <20200613122859.4f5e2761@hermes.lan> <20200614005353.fb4083bed70780feee2fd19a@uniroma2.it> 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 On Sat, 13 Jun 2020 18:34:25 -0600 David Ahern wrote: > On 6/13/20 4:53 PM, Andrea Mayer wrote: > > 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? > > > > u32 or unsigned int is fine. Hi David, I will use the u32. thanks, Andrea