Date: Fri, 9 Nov 2007 05:38:13 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128853 for review Message-ID: <200711090538.lA95cDvD047986@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128853 Change 128853 by kmacy@kmacy:storage:toestack on 2007/11/09 05:37:25 fix handling of GET_IFF_MAC Affected files ... .. //depot/projects/toestack/sys/dev/cxgb/cxgb_offload.c#16 edit Differences ... ==== //depot/projects/toestack/sys/dev/cxgb/cxgb_offload.c#16 (text+ko) ==== @@ -205,26 +205,29 @@ static struct ifnet * get_iff_from_mac(adapter_t *adapter, const uint8_t *mac, unsigned int vlan) { -#ifdef notyet int i; for_each_port(adapter, i) { +#ifdef notyet const struct vlan_group *grp; +#endif const struct port_info *p = &adapter->port[i]; - struct ifnet *ifnet = p->ifp; + struct ifnet *ifp = p->ifp; if (!memcmp(p->hw_addr, mac, ETHER_ADDR_LEN)) { +#ifdef notyet + if (vlan && vlan != EVL_VLID_MASK) { grp = p->vlan_grp; dev = grp ? grp->vlan_devices[vlan] : NULL; } else while (dev->master) dev = dev->master; - return dev; +#endif + return (ifp); } } -#endif - return NULL; + return (NULL); } static inline void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711090538.lA95cDvD047986>