Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1975775rwl; Fri, 31 Mar 2023 22:19:14 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrXtWHZVZ3IYLr7EGMhV8CT2lTXGp655AZ9dpGRt6l6b0IBXPRg0L2l4mq1Bg5vThFk3jR X-Received: by 2002:aa7:924e:0:b0:5e2:3086:f977 with SMTP id 14-20020aa7924e000000b005e23086f977mr8434651pfp.2.1680326354611; Fri, 31 Mar 2023 22:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680326354; cv=none; d=google.com; s=arc-20160816; b=sX/LZsKJLs3mthiRFtzXpjX7K8aQy3RYqvWIbRF8VhuTsRY1kwusrcDKhVXRj6P+yV c2yFbf32piV9HqDPVxNPuXwiijXYv52iihQsiRyyrsWn8TWNrUiIt1Y+Dw91C7Rc7f6i KBjxqRbuHMDrV59PYfS3Wei+0cJ6UMQPFtjxYhYPRmCkvLQ572j9XNb6+VSGmBaBPwi3 FXCpekQ39y3HybA5tmi86iCvjlUB/3q90vfuDRzAhrjuDao+gf5sQIojw4wXKz87inul KMUtfGO7aLfyXnZIb2qTZAnmbxehRy+707Ol3hPbZX/gt6j+8/ZrCTLT1/MBWjwrNg/u IQUA== 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=vKA3gGy+0dhzFsNM4Ea3TTQPUHZfSq2cEeRhiwQXQM0=; b=QYDhILY/6EmcJdEzGocPP2h4B/BhyIWenjbhrPOasDP/a44D/WT/vFd8bLyOHoF/pM E6LuzZQsebUnbDPhnwO40XmlsVyrB+2oXBk8tzXw2xRFoxpx0COyZt2vDr3ZtVPO9BwQ pup8srE1+MvaI3ypzv4nbiTHxngifkkhxiaeRDKrrXNjCiFv4NbPlblAueQV0nAprIg4 nOitry0Hu6HQiWBB0wKU4Ty3Og6yuNgWgJJBTrexYsOJsXhIot3uPbDn2RHg0M4OhOVU SpNV6aOSyMiLaLvSEfwRAmQW3TPF8F113Xeke1bO7PpY/AEu/M3hkAF7yPI4ZOIDPXSm ACdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jN/+o7G+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020aa79542000000b00590712dd84bsi3398510pfq.81.2023.03.31.22.19.01; Fri, 31 Mar 2023 22:19:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jN/+o7G+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233343AbjDAEJ2 (ORCPT + 99 others); Sat, 1 Apr 2023 00:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232117AbjDAEJ0 (ORCPT ); Sat, 1 Apr 2023 00:09:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA521A964; Fri, 31 Mar 2023 21:09:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DB051B83351; Sat, 1 Apr 2023 04:09:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1F04C433D2; Sat, 1 Apr 2023 04:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680322162; bh=g7PnwELFRTJZzkTdRGdAbwHBGVF//Z0ISuVZjwv+YV0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jN/+o7G+MH3Jrs0IkXysetWwcszpZ3+L4i+/hPw4mB61zG/82YMKlYW/GnbKp5oxJ RG4SB10NiUZAY0a62Vgooom3AZZVXsD6iOGT58QadQdBcOAMersMAZY6ExLm341/Kk GZ0thtOwF/KZ/Hle+gWQt9aLr82aLL4zS+F/YiO87hCsWkL1hLGTWqL+6Z7ezsNOA0 TTeY5exsfQj1d5siMqhxXr9QRNXvfEmZ6gGLXXt9UAAkWVJuEYwONAspO/e1b9dYLE kBfH6ad/zrkIOZyvloToCZrYVGntYJXfEAqmwfkvAl9AG6XMbindoNQTsPFtOw13n5 gKv4v2o7seSIw== Date: Fri, 31 Mar 2023 21:09:20 -0700 From: Jakub Kicinski To: Anjali Kulkarni Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, zbr@ioremap.net, brauner@kernel.org, johannes@sipsolutions.net, ecree.xilinx@gmail.com, leon@kernel.org, keescook@chromium.org, socketcan@hartkopp.net, petrm@nvidia.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v4 1/6] netlink: Reverse the patch which removed filtering Message-ID: <20230331210920.399e3483@kernel.org> In-Reply-To: <20230331235528.1106675-2-anjali.k.kulkarni@oracle.com> References: <20230331235528.1106675-1-anjali.k.kulkarni@oracle.com> <20230331235528.1106675-2-anjali.k.kulkarni@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 Mar 2023 16:55:23 -0700 Anjali Kulkarni wrote: > +int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, > + __u32 portid, __u32 group, gfp_t allocation, > + int (*filter)(struct sock *dsk, > + struct sk_buff *skb, void *data), > + void *filter_data); > -int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid, > - u32 group, gfp_t allocation) > +int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, > + u32 portid, > + u32 group, gfp_t allocation, > + int (*filter)(struct sock *dsk, > + struct sk_buff *skb, void *data), > + void *filter_data) nit: slight divergence between __u32 and u32 types, something to clean up if you post v5