Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp324553rbb; Sat, 24 Feb 2024 02:06:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWP9aZCBp/N5Fg4JEbvc/s+z6bohgWfiShyufg5A8ZCKXX6P2OcZEt8JxSwyxPQdKpjn1WR1HZ7DlGcVI2d7+7AdqtUHFOowijd6r0R2g== X-Google-Smtp-Source: AGHT+IEtaz6kCXsfq8+oI6q65gmkkNN5NRwg8SSsG0vTjZspAZHB58nURvmXoSB4MK54S28Wv4f9 X-Received: by 2002:a17:906:528d:b0:a40:65e9:de1e with SMTP id c13-20020a170906528d00b00a4065e9de1emr1259314ejm.8.1708769215822; Sat, 24 Feb 2024 02:06:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708769215; cv=pass; d=google.com; s=arc-20160816; b=VBZZQSnH0gvzhPl1+zRyMFdhnsa22h+z/er0j1+zrJf3JW/RR9bBBi9G6jCihvq+6R +9ZbCE54GfdvDQB23wWtBYp1dlSSK9MAstv3U5RAB8cwszYejJYuvqsPfsbsl/czJjND NoZ9GJQc8T+VGgOcQvCVZN6DFy4gVko7TTkzPKiK5X/xtV3o5lRq0SIEhFAqnErp902h hRd1RgKwgIExsKnK9SAGhdQK7tV+WW+Gnsdsw70pFCB7FIu2Lt+hZatRiDbSEFuGNDCQ CqTqwy2WcjerlZYnyqh0O3QSn6964UfeYLbkMI/xnzJF0MsCpuzVV4GwbZKEtmXzgtTw gn0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=KHl18biT5vDkTbpn3heieynPezevOyO3IU67a+gcE40=; fh=nDyumSLnszaKw+Ft8cKPWNI/pRUxzq2zN7vnBUR+KRk=; b=FxE0i8f3KUZlptRazkjelMLXhWNAm2OWJbS78GBm22SvAGBJAwMPZSUrszv8fbAkxq QSYSCT8/1KwngPWXML9Eb2BTHEHJuZJzj1cFfZb39iRFEwXfYhYfKUbf0reizUfUCp89 JuCKuR/I00HT+lS+A9WI5rS/Yj6nzKhPd8ITb0SvT6Y+iLOCFoNjEwxZvfs81mrudSVC sRYmLO45bbGO9HPOFwgtLAIi3SOcB/E9cwh5GB8OKUS3YAsQpKrnutPDfwNAj/kDHpwv k53jFt954BygbgEj+6n3XTeeyR/bmUHUSjWpfnOi3AoKk9zt3J+enaNfMn5PrvOqBMs2 eJNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a86AN6I2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-79551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i26-20020a1709061cda00b00a3ce79e8cb1si400395ejh.557.2024.02.24.02.06.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:06:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a86AN6I2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-79551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8827F1F2171B for ; Sat, 24 Feb 2024 10:06:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A028D1C2AE; Sat, 24 Feb 2024 10:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a86AN6I2" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10F851B965 for ; Sat, 24 Feb 2024 10:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769207; cv=none; b=XLqY6Pc7ItGAypfwdFr5H9osV70dEZbKeTb1gp8eFwp3UsHNR+2I4Ln2MK9ty+UPWp5c6JUtKZoToOs7dF2W/IRN73qGXPLKFv2eCeEtr1k7WV9W0lzQF2MqJD/2/ob1/Nz//2G4AkZ/362OaSLpmhI1Xa2cGhDeIrOUkOlKt00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708769207; c=relaxed/simple; bh=1h8R9grYTeJRg8NpMAYjeeowpOL4cYH4Egz63NDyspk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tgERAnCrMNL6/7LVzKJOJToIyR6kHg9i8bjgMn8thXIFqkVuJeOwL20G/q8XdyF7XQneyNjjpTB9b/YYnq5lEpH0m9cpZQpONParLo4dCHMeUVDvzjNvSCMocnHtNTmivCPXHybUTrTw4yS6a7bZKBCiu8ju46fQfhiCtpg10u8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=a86AN6I2; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708769204; h=from:from: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=KHl18biT5vDkTbpn3heieynPezevOyO3IU67a+gcE40=; b=a86AN6I2VmA/NzLVUbxIrTbwptyQ+e24oiB3K2ymmyMMHmsXoMd2Lp8/m4pLXw0icTBC6f D5HW+FzC75sx1m8czRU/t2/HAWwJ4ztm7nMg9N9XEqz7otd3OT0lE6hAyfSLGch3RhjMkI r2+p+C7OO1iZdrHbxdH02erFfwcfzNk= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-512-K1edOm7MObC7lHGK6cY37Q-1; Sat, 24 Feb 2024 05:06:41 -0500 X-MC-Unique: K1edOm7MObC7lHGK6cY37Q-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 84F523C0ED77; Sat, 24 Feb 2024 10:06:40 +0000 (UTC) Received: from griffin (unknown [10.45.224.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CF47D492BD7; Sat, 24 Feb 2024 10:06:37 +0000 (UTC) Date: Sat, 24 Feb 2024 11:06:22 +0100 From: Jiri Benc To: Richard Gobert Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, idosch@nvidia.com, razor@blackwall.org, amcohen@nvidia.com, petrm@nvidia.com, b.galvani@gmail.com, bpoirier@nvidia.com, gavinl@nvidia.com, martin.lau@kernel.org, daniel@iogearbox.net, herbert@gondor.apana.org.au, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/2] net: geneve: enable local address bind for geneve sockets Message-ID: <20240224110622.4855a202@griffin> In-Reply-To: <79a8ba83-86bf-4c22-845c-8f285c2d1396@gmail.com> References: <79a8ba83-86bf-4c22-845c-8f285c2d1396@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 On Thu, 22 Feb 2024 21:53:50 +0100, Richard Gobert wrote: > static const struct nla_policy geneve_policy[IFLA_GENEVE_MAX + 1] = { > - [IFLA_GENEVE_UNSPEC] = { .strict_start_type = IFLA_GENEVE_INNER_PROTO_INHERIT }, > + [IFLA_GENEVE_UNSPEC] = { .strict_start_type = IFLA_GENEVE_LOCAL6 }, The strict_start_type value should stay at IFLA_GENEVE_INNER_PROTO_INHERIT. We don't want to relax the strict checking for that attribute and we want strict checking for the newly added IFLA_GENEVE_LOCAL. See the documentation in include/net/netlink.h. Jiri