Re: [net-next PATCH] net: rtnetlink: Don't export empty RTAX_FEATURES

2016-08-23 Thread David Miller
From: Phil Sutter Date: Tue, 23 Aug 2016 13:14:31 +0200 > Since the features bit field has bits for internal only use as well, it > may happen that the kernel exports RTAX_FEATURES attribute with zero > value which is pointless. > > Fix this by making sure the attribute is added only if the expo

[net-next PATCH] net: rtnetlink: Don't export empty RTAX_FEATURES

2016-08-23 Thread Phil Sutter
Since the features bit field has bits for internal only use as well, it may happen that the kernel exports RTAX_FEATURES attribute with zero value which is pointless. Fix this by making sure the attribute is added only if the exported value is non-zero. Signed-off-by: Phil Sutter --- net/core/r