[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080305.183539.76566188.davem@davemloft.net>
Date: Wed, 05 Mar 2008 18:35:39 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org
Subject: Re: [IPV4]: Add an 'rtable' field in struct sk_buff to alias 'dst'
field and avoid casts
From: Eric Dumazet <dada1@...mosbay.com>
Date: Thu, 06 Mar 2008 00:30:02 +0100
> [IPV4]: Add an 'rtable' field in struct sk_buff to alias 'dst' field and avoid
> casts
>
> (Anonymous) unions can help us to avoid ugly casts.
>
> A common cast it the (struct rtable *)skb->dst one.
>
> Defining an union like :
> union {
> struct dst_entry *dst;
> struct rtable *rtable;
> };
> permits to use dkb->rtable in place.
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
>
Applied with some minor changelog tidy and typo fixups.
Please make your changelog entry header lines smaller in
the future. People scan them in shortlog output and it's
less readable if it's wider than standard terminal widths.
Thank you.
--
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