Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753254AbcD0H32 (ORCPT ); Wed, 27 Apr 2016 03:29:28 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38466 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753197AbcD0H30 (ORCPT ); Wed, 27 Apr 2016 03:29:26 -0400 Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 9/9] taskstats: use the libnl API to align nlattr on 64-bit References: <1461339084-3849-1-git-send-email-nicolas.dichtel@6wind.com> <1461339084-3849-10-git-send-email-nicolas.dichtel@6wind.com> <57201287.80002@gmail.com> To: Balbir Singh , netdev@vger.kernel.org Cc: davem@davemloft.net, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org, aar@pengutronix.de, pablo@netfilter.org, kaber@trash.net, kadlec@blackhole.kfki.hu, pshelar@nicira.com, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, netfilter-devel@vger.kernel.org, dev@openvswitch.org, steffen.klassert@secunet.com, herbert@gondor.apana.org.au From: Nicolas Dichtel Organization: 6WIND Message-ID: <57206A47.2010906@6wind.com> Date: Wed, 27 Apr 2016 09:29:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <57201287.80002@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 26 Le 27/04/2016 03:14, Balbir Singh a ?crit : > > > On 23/04/16 01:31, Nicolas Dichtel wrote: >> Goal of this patch is to use the new libnl API to align netlink attribute >> when needed. >> The layout of the netlink message will be a bit different after the patch, >> because the padattr (TASKSTATS_TYPE_STATS) will be inside the nested >> attribute instead of before it. >> >> Signed-off-by: Nicolas Dichtel > > The layout will change/break user space -- I've not tested the patch though.. Sigh. I quote David: "All userspace components using netlink should always ignore attributes they do not recognize in dumps. This is one of the most basic principles of netlink" Do you have some pointers so I can made some tests? Regards, Nicolas