Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2755124imm; Tue, 4 Sep 2018 09:29:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaT/XldZw6iQQDbOXNLD53JnKxdcgNhH/jUmDS92jnA89aOZi4wOWxAiqNJ+YSsUHk8n2e5 X-Received: by 2002:a63:8241:: with SMTP id w62-v6mr30419845pgd.230.1536078560983; Tue, 04 Sep 2018 09:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536078560; cv=none; d=google.com; s=arc-20160816; b=waK11n4VIILHaFfmXb60hladN278HRXRLd5ZrI4ls5lyu5xUptNCMcLpGOMo+WyqXE J5BLSHwv9DA7Jp4uGScqyFLJAK0vJSw0Kuc2Qfajxpn0U9MznE9tossWl8jbJbXVoafO DzCT/df4y9UlwxxirLJlDJ60CItTof6xFLmNUDYe2KH6pe5cl0pz80nuJwrOUnT/PfdD burGApnR8aZYc9Y0IU8bE+lX3ghBFUAzBg5mrwVkIfN/6g8rWDJzh3Z8kZ+30CvUBbag IWl7RRtusUakN9pPxIXNQNt+khEj43Aa5IxFkb1U31RKrUday2aKSnv+8e6/Lw5eOSVl jIhA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=QLnSyS5PYHOxMceUou69NqqmbLj7+jEB3nvbBFDETrY=; b=SnW8P+6FxWLjhCHwaaygTDzYazXTFkddbS0N9cThehO0qwr0ALAW1n64onIUnhzb/4 OzlJxAowS8m55oUMbi88gbGqsEryGXJFthaW6mAC0bDyms/Uok6p/dH1T/9j6OmjfyPr Oc+hd03WWwEQAWZs7u/UBU2dUh1i3EnG7XkIu2SbDU0ZKiLWbAwQZY78kjiVYtXPUh+P +RaBIG/Rz56IB8Kp+TCZzONou8OuYVXgYlL4UG9z/jn0mGA1ZcqY8k8wvUvNmGVNLXh8 /q90jzvPyUo4vGCc5OVyYO0EUFfylwrXcq+/Qyex0aUJvB9ahZeeHKZVrV9eZ48S17Ak dUFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Id2mx2Da; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si21430074pgg.341.2018.09.04.09.29.03; Tue, 04 Sep 2018 09:29:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Id2mx2Da; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727257AbeIDUxp (ORCPT + 99 others); Tue, 4 Sep 2018 16:53:45 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34743 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbeIDUxp (ORCPT ); Tue, 4 Sep 2018 16:53:45 -0400 Received: by mail-pl1-f193.google.com with SMTP id f6-v6so1884318plo.1; Tue, 04 Sep 2018 09:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QLnSyS5PYHOxMceUou69NqqmbLj7+jEB3nvbBFDETrY=; b=Id2mx2Dagjyrkes1MNR7bg5K71M2sj92DEdh4zVeDhu8msHbQ+9p9S7Eonh5t2o9lw 51j2j6ZITjGEk5E9D8jsQC3lUYdFrrtKyNNe+kWTTtynZLYgpiQwEtAX23wNOc65M7GQ vEZPK03VHYjr7hHU1F9e8j6VF/N1v6YwYIEG11ls5/3rO2pWRuxV6AvCBSNl7JPv1+oq hilKiduVOKIH7HQkmCHhRB72g7PQc5QuH9r9DtWSZvymxvevgz05+vSkJKToo6njg1SU /QkW2c6GWo6iYl0sFdPI7FHQ9Ap781e9XXBvc4ItXIgP0XKTSK1/wamCUjiEkpOWxXbT 3D6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QLnSyS5PYHOxMceUou69NqqmbLj7+jEB3nvbBFDETrY=; b=pH3hy6ZyW8xRA0sUQjm2ThWQIcBzCCmv5lWkKi/xny42dfz7WH3YPJjl7rmSODKNHZ BGPgxQC788YtNQzha4VODiQnATihsRZfNwRIEvHTZI+r11rSEay2JkvI4/eCgW6mzH2V sSte6aeTSjw5mI3KVAOfXH1/bNfi+l0H74Xb2unGg+oVbiVrel97DtkQiXZEM5n+26xB avGSFnhqU+c1pe68DXsJGR9QUnrkVfcVYYNp7A+6Rh9zvJCsBMbELsqbif+DrtsOpwOW rTznMPrImcV2a/dzavNpoCNXqqAw5za5P6Vu9dUJVfXHs8DQeepgm90xWXXzc0tptM0e Ze6g== X-Gm-Message-State: APzg51AGF7QUOYxmeCIcH5lpuauOSL5eMYzk4qg5e9KvjaHQGORlYee8 8fgh8Ln9YE2hZZjIXbRFNfc= X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr33742522plp.14.1536078474280; Tue, 04 Sep 2018 09:27:54 -0700 (PDT) Received: from dsa-mb.local ([2601:282:800:fd80:1145:f235:fa5f:50ca]) by smtp.googlemail.com with ESMTPSA id b21-v6sm58132729pfm.97.2018.09.04.09.27.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 09:27:53 -0700 (PDT) Subject: Re: [PATCH net-next v1 3/5] ipv4: enable IFA_IF_NETNSID for RTM_GETADDR To: Jiri Benc Cc: Christian Brauner , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, pombredanne@nexb.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, fw@strlen.de, ktkhai@virtuozzo.com, lucien.xin@gmail.com, jakub.kicinski@netronome.com, nicolas.dichtel@6wind.com References: <20180903043717.20136-1-christian@brauner.io> <20180903043717.20136-4-christian@brauner.io> <20180904085006.58c665c0@redhat.com> From: David Ahern Message-ID: <8f0aa154-1ba9-5659-cbe3-19da4196fae0@gmail.com> Date: Tue, 4 Sep 2018 10:27:51 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180904085006.58c665c0@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/4/18 12:50 AM, Jiri Benc wrote: > > This is a general problem with netlink: unknown attributes are ignored. > We need a way to detect that certain attribute was understood by the > kernel or was not. And it needs to work retroactively, i.e. the > application has to be able to determine the currently running kernel > does not support the feature (because it's too old). sure, and that has been discussed before. > > That's why we return back the attribute in responses to a request with > IFLA_IF_NETNSID present and why we should do the same for > IFA_IF_NETNSID. > >> See 21fdd092acc7e. I would like to see other filters added for addresses >> in the same release this gets used. The only one that comes to mind for >> addresses is to only return addresses for devices with master device >> index N (same intent as 21fdd092acc7e for neighbors). > > I also question the statement that IFA_F_NETNSID is a filter: my > understanding of "filter" is something that limits the output to a > certain subset. I.e., unfiltered results always contain everything that > is in a filtered result. While with IFA_F_NETNSID, we get a completely > different set of data. Does that really constitute a filter? Note that > we can still filter in the target netns. > I'll buy that argument over the 'too coarse' one. Looking at the link version of this flag, the NLM_F_DUMP_FILTERED flag is not used there so for consistency the address one should follow suit.