From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932840Ab3EBUky (ORCPT ); Thu, 2 May 2013 16:40:54 -0400 Received: from Mycroft.westnet.com ([216.187.52.7]:59179 "EHLO mycroft.westnet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932619Ab3EBUkx convert rfc822-to-8bit (ORCPT ); Thu, 2 May 2013 16:40:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Message-ID: <20866.53065.328731.479441@quad.stoffel.home> Date: Thu, 2 May 2013 16:40:41 -0400 From: "John Stoffel" To: Ben Hutchings Cc: John Stoffel , David Miller , , , , , , , Subject: Re: [GIT] Networking In-Reply-To: <1367525887.5106.140.camel@deadeye.wl.decadent.org.uk> References: <20130502.041625.412316202038784117.davem@davemloft.net> <20130502083619.GA22010@macbook.localnet> <87d2t9bvj1.fsf@nemi.mork.no> <20130502.140125.697030413654996310.davem@davemloft.net> <20866.46636.642215.768865@quad.stoffel.home> <1367525887.5106.140.camel@deadeye.wl.decadent.org.uk> X-Mailer: VM 8.1.2 under 23.2.1 (x86_64-pc-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Ben" == Ben Hutchings writes: Ben> On Thu, 2013-05-02 at 14:53 -0400, John Stoffel wrote: >> >>>>> "David" == David Miller writes: >> David> From: Bjørn Mork David> Date: Thu, 02 May 2013 11:06:42 +0200 >> >> >> From d957cf339bf625869c39d852ac6733ef597ecef9 Mon Sep 17 00:00:00 2001 >> >> From: Bjørn Mork >> >> Date: Thu, 2 May 2013 10:37:05 +0200 >> >> Subject: [PATCH] net: vlan,ethtool: netdev_features_t is more than 32 bit >> >> MIME-Version: 1.0 >> >> Content-Type: text/plain; charset=UTF-8 >> >> Content-Transfer-Encoding: 8bit >> >> >> >> Signed-off-by: Bjørn Mork >> David> Also applied and queued up for -stable. >> David> These changes show me that this special type isn't providing type David> safety in the way that we actually need it. >> David> Something like how we do the MM page table types would work better: >> David> typedef struct { u64 val; } netdev_features_t; >> David> #define __netdev_feature(X) ((netdev_features_t) { X } ) >> David> and also with the appropriate set of accessors. >> David> Then you can't get it wrong without a compile error. >> >> Isn't part of the problem that you're exporting it into /sys in a >> binary format? Ben> [...] Ben> Features are exported through SIOCETHTOOL, not sysfs (though they *used* Ben> to be there). Ben> The 'flags' attribue in sysfs is something different. THanks for the clarification.