From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3A6BB60B10 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5B69960B01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675171959; bh=d+6BT8JVSgEFjcy1nrHUrWL1dja7eV7LU+hE8XcgdKc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pes9sHnLghuyBq1lbURcdB7zDnGTSwRDZB0+EKBLqNBJDecx1Cu/zl4o8EY0/Uiuv WKhq36iRnN6nSXRZ2D6GioT3mL1abMVkS2QWeFWW4FQ5B7ivByXinVfjUUjUmPodO2 B8W7wPuWnl8qIkhQV5nTb9Xrrw4SJo1pKmfA+Ae4kAhnnd9FEGj6qt1eR8ahXbCI6P E/vqHZoF/3IbFvS66BdgoNX139/lYg3nsLblW/d/TD+f/9gOUZjCDk5Pxb9wCOKpM7 kv+KIuRw3xZExMXpAzDm9LIKwSPiNIyEQSFTPwIcA6kKjQK01t9K3B6vgUFRs0Uagf zLPzlAW+BnFAg== Date: Tue, 31 Jan 2023 15:32:35 +0200 From: Leon Romanovsky Message-ID: References: <801a4a44f0fb6e37f79037eae9a3db50191cdb12.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <801a4a44f0fb6e37f79037eae9a3db50191cdb12.camel@redhat.com> Subject: Re: [Bridge] [PATCH net-next v2] netlink: provide an ability to set default extack message List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Abeni Cc: Steffen Klassert , Andrew Lunn , Florian Fainelli , Herbert Xu , netdev@vger.kernel.org, Nikolay Aleksandrov , bridge@lists.linux-foundation.org, Eric Dumazet , Roopa Prabhu , Jakub Kicinski , Vladimir Oltean , "David S . Miller" On Tue, Jan 31, 2023 at 12:47:03PM +0100, Paolo Abeni wrote: > Hello, > > On Sun, 2023-01-29 at 18:51 +0200, Leon Romanovsky wrote: > > In netdev common pattern, extack pointer is forwarded to the drivers > > to be filled with error message. However, the caller can easily > > overwrite the filled message. > > > > Instead of adding multiple "if (!extack->_msg)" checks before any > > NL_SET_ERR_MSG() call, which appears after call to the driver, let's > > add new macro to common code. > > > > [1] https://lore.kernel.org/all/Y9Irgrgf3uxOjwUm@unreal > > Signed-off-by: Leon Romanovsky > > I'm sorry for nit-picking, but checkpatch complains the author > (leon@kernel.org) does not match the SoB tag. A v3 with a suitable > From: tag should fix that. Sure, will resend. > > Thanks, > > Paolo >