From: Stephen Hemminger on
On Tue, 4 May 2010 13:19:38 -0700
"Paul E. McKenney" <paulmck(a)> wrote:

> The new versions of the rcu_dereference() APIs requires that any pointers
> passed to one of these APIs be fully defined. The ->br_port field
> in struct net_device points to a struct net_bridge_port, which is an
> incomplete type. This commit therefore changes ->br_port to be a void*,
> and introduces a br_port() helper function to convert the type to struct
> net_bridge_port, and applies this new helper function where required.
> Signed-off-by: Arnd Bergmann <arnd(a)>
> Signed-off-by: Paul E. McKenney <paulmck(a)>
> Cc: David Miller <davem(a)>
> Cc: Stephen Hemminger <shemminger(a)>
> Cc: Eric Dumazet <eric.dumazet(a)>

I would rather make the bridge hook generic and not take a type argument.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at