Re: [PATCH] deinline a few large functions in vlan code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Denis Vlasenko <vda@xxxxxxxxxxxxx>
Date: Mon, 10 Apr 2006 08:28:20 +0300

> IOW: shouldn't calls to these functions sit in
> #if defined(CONFIG_VLAN_8021Q) || defined (CONFIG_VLAN_8021Q_MODULE)
> block? For example, typhoon.c:
> 
>                 spin_lock(&tp->state_lock);
> +#if defined(CONFIG_VLAN_8021Q) || defined (CONFIG_VLAN_8021Q_MODULE)
>                 if(tp->vlgrp != NULL && rx->rxStatus & TYPHOON_RX_VLAN)
>                         vlan_hwaccel_receive_skb(new_skb, tp->vlgrp,
>                                                  ntohl(rx->vlanTag) & 0xffff);
>                 else
> +#endif
>                         netif_receive_skb(new_skb);
>                 spin_unlock(&tp->state_lock);
> 
> Same for s2io.c, chelsio/sge.c, etc...

Very likely yes.  tp->vlgrp will never be non-NULL in such situations
so it's not a correctness issue, but rather an optimization :-)
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux