Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp651395ybg; Fri, 12 Jun 2020 10:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57boFpkHjafvST55ye+woIYX9Y1hvvo3Vb4Q7MiTGUivQSM+f/htJiQsvyIJr4fB6i688 X-Received: by 2002:a50:bb29:: with SMTP id y38mr12596898ede.358.1591984482160; Fri, 12 Jun 2020 10:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591984482; cv=none; d=google.com; s=arc-20160816; b=AEamlSvQYC9PghSa9RQAHnrlRMuZhdjm41A8UiqhODVjABzLfAgVkVBldsdYq219kW JwrLV+javQ9TQ11Mqtn2e57g+9H3gjyyPmy8NgCYiRSWUfoOHshFc7Za6mE2h5/73wFu jnEpLxjqZJF2ob+yhbsxJnuxi5zKXU8B18rakn+YIvjvHijFBax4YUH1dWkxh3gybyg3 TZ2KUlsaKvxUisVwl7bS//HccDKT1eGNEx0dp7YsJVTOo7+wxzpxxLSL1pb6QIQ3CXP3 eeTnqa1G66E8G2ztGC3yzVfHD4kwSF9BnvRWr65pw24RExUQ7RUaj+2YUj4tM5FR4hOZ BuiA== 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; bh=FKH3MqFeDGfcjH+iBszJ5zqPgv+xgpvObu10Q2JkBZI=; b=wD6II8tKFvqv8i/XRpCfZuTn9R6R/51ZxniLmnFxf8atYBRgzhI4awK8RqBF9ejR1z 0n9hTBigTODBV1TYx5xe/3rC4zuNYdloSqDn6s5BjlPJ2jQS8QwsizV3e3iOveCEvLLp C2T+b36j2Dy47opoMaUAmA9p9vRKeC0FDAFy8rBR+/n5KywbiBaO7XTvZ2zgB1w26p/S OUnBtk0ucVME8dfnb+UHTodblIIPtwDMieIJHTDamq7VYftim/CBSlsPw6SnmIK9sRbS Mpkm7HCvYIinxb91aC/hrql8UXAPf1EYEVLRNplJqfLnZ0wWBtc0z+ibOJvEyhqNklP2 rOPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="bCfos6/U"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx19si3800351edb.395.2020.06.12.10.54.20; Fri, 12 Jun 2020 10:54:42 -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=pass header.i=@kernel.org header.s=default header.b="bCfos6/U"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726367AbgFLRwa (ORCPT + 99 others); Fri, 12 Jun 2020 13:52:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:39422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbgFLRwa (ORCPT ); Fri, 12 Jun 2020 13:52:30 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E258207ED; Fri, 12 Jun 2020 17:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591984349; bh=q+5z7cVTThqiMbNhEpYBI/PR2+OqYXGqJO2cXdMTqMY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bCfos6/Uzgi5Yba9XWzT1sJPOdvCkvNvmfLJOdC5TPrnyfvcUBUFyZihuAi0hRTHD LsImEBqgXQfX0LLTyrjgwxHolNUtfsUtRNjhDIl0c7iwtUIHYauQEDUpAm1xXov4MH 2UOoEoQ65UA2TEmcFf3NPxRLXzzZ0Tm/AnwVTVKw= Date: Fri, 12 Jun 2020 10:52:27 -0700 From: Jakub Kicinski To: Andrea Mayer Cc: David Ahern , "David S. Miller" , Shrijeet Mukherjee , 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 Subject: Re: [RFC,net-next, 3/5] vrf: add sysctl parameter for strict mode Message-ID: <20200612105227.2f85e3d7@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200612164937.5468-4-andrea.mayer@uniroma2.it> References: <20200612164937.5468-1-andrea.mayer@uniroma2.it> <20200612164937.5468-4-andrea.mayer@uniroma2.it> 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 Fri, 12 Jun 2020 18:49:35 +0200 Andrea Mayer wrote: > Add net.vrf.strict_mode sysctl parameter. > > When net.vrf.strict_mode=0 (default) it is possible to associate multiple > VRF devices to the same table. Conversely, when net.vrf.strict_mode=1 a > table can be associated to a single VRF device. > > When switching from net.vrf.strict_mode=0 to net.vrf.strict_mode=1, a check > is performed to verify that all tables have at most one VRF associated, > otherwise the switch is not allowed. > > The net.vrf.strict_mode parameter is per network namespace. > > Signed-off-by: Andrea Mayer drivers/net/vrf.c:1771:49: warning: incorrect type in argument 3 (different address spaces) drivers/net/vrf.c:1771:49: expected void * drivers/net/vrf.c:1771:49: got void [noderef] *buffer drivers/net/vrf.c:1785:35: warning: incorrect type in initializer (incompatible argument 3 (different address spaces)) drivers/net/vrf.c:1785:35: expected int ( [usertype] *proc_handler )( ... ) drivers/net/vrf.c:1785:35: got int ( * )( ... )