[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080303.232342.221759327.davem@davemloft.net>
Date: Mon, 03 Mar 2008 23:23:42 -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: Tue, 04 Mar 2008 08:15:41 +0100
> @@ -223,7 +223,7 @@ static int br_nf_pre_routing_finish_ipv6(struct sk_buff *skb)
> }
> nf_bridge->mask ^= BRNF_NF_BRIDGE_PREROUTING;
>
> - skb->dst = (struct dst_entry *)&__fake_rtable;
> + skb->dst = &__fake_rtable.u.dst;
> dst_hold(skb->dst);
>
> skb->dev = nf_bridge->physindev;
Any reason this case (and the next 3 hunks) can't simply
use just plain "&__fake_rtable"? That would probably
look nicer and match the rest of this patch.
--
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