Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3329411pxu; Mon, 19 Oct 2020 09:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi6Kl7euUrTeaW48bFQ3jHotuJJWZRX132/yMCw1RAiesOzUdoc2QEavejhJ6p22C29JE0 X-Received: by 2002:a17:906:1d53:: with SMTP id o19mr721994ejh.468.1603124713326; Mon, 19 Oct 2020 09:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603124713; cv=none; d=google.com; s=arc-20160816; b=As0YnGrD56/pgHbV5r9NgwOzwISE0UC3Kvm8OCTZNvZ55aWOmM5YcRgxSeUyqRMqeB DpJgqMutH4LAsClMNd0QY4FF+zkphrIsRcmGjewT0uGjjMvMu4S3GWiqvdB7iOhnQNhC EqWRGq03W8KL87gxzeokW8cBYr+SBDvPUG4Ujusvkg3l7cFJmB6A/qtJCkf0n6+D5n5R nkfG6lI7cUry0uLizf45S6Dliu/cNOquhIsm4JwTJlalEUYJ9POWMGDm+0DaNA7oj3wN vTpaA9ZVC6DaJkXSBNDnS85XngW+wQkKK1jA1p/C7Xbhnl57ywnOssyVg80xfvoil8jD skaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=trv2wspqgJ99i4PMNkzfaXSjeSa3rmTkYmOp1fGLbGE=; b=H5irCUoDL3j2YpBH9zzx0MYH9m7/kKINAsvVS/l24ZENiYbUEXQmp94z8dxHoP/44g EpwMhHfK+OHSUZmtBx02y7LGNnp3Sp4hxRdhGTIimNKrjXiJLHqYkD+RGEUaOSvSew+y gAN9ioiYDSNPDgB7YVv09Nq2E4Ghuanao9OK8//oW8BCuNaL9WgG+Z0NVUSqM/RFRyvg wo2RdBsurpeb/cDhjMFpdwXb03zpVFIc9+3ytQU8KuH1mH56N6Kn5RLT6KxYRLdJ2bpI /PoK3Y/fOmxkJVPAfszEGMP1ThtQ3k+cDnMvmBbLGF4Kv4vviaf6mdtYEpmZ89iqgV7X ojsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1fQRPzRp; 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 qc17si294335ejb.555.2020.10.19.09.24.48; Mon, 19 Oct 2020 09:25:13 -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=1fQRPzRp; 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 S1730593AbgJSQXo (ORCPT + 99 others); Mon, 19 Oct 2020 12:23:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:49340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730494AbgJSQVs (ORCPT ); Mon, 19 Oct 2020 12:21:48 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.4]) (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 9230122276; Mon, 19 Oct 2020 16:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603124507; bh=LBnNygCqE7uMUmgPFZOhgtlQx9yMmKUGgGfck+lQbM0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=1fQRPzRpMj2u3NN+KJswolxRuRhv3qRdedeyMtEqakQ3nnD+iM0txfAYnoqtOgV8j aEOJFZzeqA6LvMYJweEeqUBM7uJlYpsd80up4YrZxTc2iQfSGYvd4ye8c0Z5HX/+Me 9VxrybdEsMjQAijUzPD1nAb/cfIiMU61F3IHTAOY= Date: Mon, 19 Oct 2020 09:21:43 -0700 From: Jakub Kicinski To: Henrik Bjoernlund Cc: , , , , , , , , , Horatiu Vultur Subject: Re: [PATCH net-next v6 07/10] bridge: cfm: Netlink SET configuration Interface. Message-ID: <20201019092143.258cb256@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201019085104.2hkz2za2o2juliab@soft-test08> References: <20201015115418.2711454-1-henrik.bjoernlund@microchip.com> <20201015115418.2711454-8-henrik.bjoernlund@microchip.com> <20201015103431.25d66c8b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20201019085104.2hkz2za2o2juliab@soft-test08> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Oct 2020 08:51:04 +0000 Henrik Bjoernlund wrote: > Thank you for the review. Comments below. > > The 10/15/2020 10:34, Jakub Kicinski wrote: > > > > On Thu, 15 Oct 2020 11:54:15 +0000 Henrik Bjoernlund wrote: > > > + [IFLA_BRIDGE_CFM_MEP_CONFIG_MDLEVEL] = { > > > + .type = NLA_U32, .validation_type = NLA_VALIDATE_MAX, .max = 7 }, > > > > NLA_POLICY_MAX(NLA_U32, 7) > > I will change as requested. > > > > > Also why did you keep the validation in the code in patch 4? > > In patch 4 there is no CFM NETLINK so I desided to keep the validation in the > code until NETLINK was added that is now doing the check. > I this a problem? Nothing calls those functions until patch 7, so there's no need for that code to be added.