Hi Vlad,

Vlad Drukker wrote:
> diff --git a/net/core/dev.c b/net/core/dev.c
> index 434220d..a351687 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c
> @@ -1614,6 +1614,8 @@ static __inline__ int handle_bridge(stru
>         struct net_bridge_port *port;
>  
>         if ((*pskb)->pkt_type == PACKET_LOOPBACK ||
> +           ((*pskb)->dev->priv_flags & IFF_MASTER_8023AD && 
> +           (*pskb)->protocol == __constant_htons(ETH_P_SLOW)) ||
>             (port = rcu_dereference((*pskb)->dev->br_port)) == NULL)
>                 return 0;
>  

Please use "htons(ETH_P_SLOW)", since the compiler will constant fold this 
and it is more readable this way.

Regards

Ingo Oeser

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to