From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2464C4332F for ; Wed, 2 Nov 2022 23:41:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbiKBXlL (ORCPT ); Wed, 2 Nov 2022 19:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231360AbiKBXkr (ORCPT ); Wed, 2 Nov 2022 19:40:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3985B13FBC for ; Wed, 2 Nov 2022 16:36:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C17AF61CBE for ; Wed, 2 Nov 2022 23:36:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7477C433C1; Wed, 2 Nov 2022 23:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667432208; bh=jCVBKb7Cflgm9xHyZURLH1okS5p6H5KxV/IvZJot/h0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tBDfIxPwjq6uOSbDatmx1D5CywoCnLWOY580E9TniIpkVJHKamwrlmuK9c9nsT2YR KStnMyNiDMYUKiUUDHJ+zGidOWTQtiKP5Cl7u7+H6zi+IMJyPzpg3M6B9mZwNwrjwU FXCG9ElLvnXLtihKpE+0ykMTortEPh2InPIzuSAP5bjctxPk8rX8QLkSgapac27zab fjPMOwKV+qh3DBdr26cVM/nxezeO75ab3tvOjUMGjRaRlOr3Skq7pUYkgVlPHuFh96 7s3gEtDNl9VzJXRy4AjiwCw7y28rOrOzf7r1kfWctlZGZ1EVChgQ2Q2ADSXXNjIXld hvcXFoehmdy1w== Date: Wed, 2 Nov 2022 16:36:46 -0700 From: Jakub Kicinski To: Jamal Hadi Salim , Hangbin Liu Cc: Marcelo Ricardo Leitner , Cong Wang , netdev@vger.kernel.org, Jiri Pirko , "David S. Miller" , Eric Dumazet , Paolo Abeni , David Ahern Subject: Re: [PATCH (repost) net-next] sched: add extack for tfilter_notify Message-ID: <20221102163646.131a3910@kernel.org> In-Reply-To: References: <20220929033505.457172-1-liuhangbin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 2 Nov 2022 11:33:18 -0400 Jamal Hadi Salim wrote: > > Sorry for the late response. I just came back form vacation. For this issue, > > I saw netlink_dump_done() also put NLMSGERR_ATTR_MSG in NLMSG_DONE. > > So why can't we do the same here? > > > > In https://www.kernel.org/doc/html//next/userspace-api/netlink/intro.html, > > The "optionally extended ACK" in NLMSG_DONE is OK. > > Ok. > [That seemd to be a nice doc - need to find time to look at it] Thanks. > > > Also - i guess it will depend on the underlying driver? > > > This seems very related to a specific driver: > > > "Warning: mlx5_core: matching on ct_state +new isn't supported." > > > Debuggability is always great but so is backwards compat. > > > What happens when you run old userspace tc? There are tons > > > of punting systems that process these events out there and > > > depend on the current event messages as is. > > > > I think old tc should just ignore this NLMSGERR_ATTR_MSG? > > Yes. > So looks good to me then. > > Acked-by: Jamal Hadi Salim Eish. Hangbin, I'm still against this. Please go back to my suggestions / questions. A tracepoint or an attribute should do. Multi-part messages are very hard to map to normal programming constructs, and I don't think there is any precedent for mutli-part notifications.