[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111109.142044.1307358041881082836.davem@davemloft.net>
Date: Wed, 09 Nov 2011 14:20:44 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: joe@...ches.com
Cc: steffen.klassert@...unet.com, netdev@...r.kernel.org,
timo.teras@....fi
Subject: Re: dst->obsolete has become pointless
From: Joe Perches <joe@...ches.com>
Date: Wed, 09 Nov 2011 04:49:08 -0800
> On Tue, 2011-11-08 at 13:59 -0500, David Miller wrote:
>> net: Kill pointless and misleading checks on dst->obsolete.
> []
>> Therefore rename it to dst->freed, and make it take on only the values
>> "0" and "1".
>> diff --git a/include/net/dst.h b/include/net/dst.h
> []
>> @@ -55,7 +55,7 @@ struct dst_entry {
>> #define DST_NOCOUNT 0x0020
>>
>> short error;
>> - short obsolete;
>> + unsigned short freed;
>
> perhaps
> bool freed;
> bool __pad3;
> just to mark the available space a bit more obviously.
Hmmm, what is a bool's defined type anyways? It is a char on every
architecture and ABI?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists