t4_tracer.c (256281) | t4_tracer.c (270297) |
---|---|
1/*- 2 * Copyright (c) 2013 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2013 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/10/sys/dev/cxgbe/t4_tracer.c 255011 2013-08-28 23:15:05Z np $"); | 29__FBSDID("$FreeBSD: stable/10/sys/dev/cxgbe/t4_tracer.c 270297 2014-08-21 19:54:02Z np $"); |
30 31#include "opt_inet.h" 32#include "opt_inet6.h" 33 34#include <sys/param.h> 35#include <sys/lock.h> 36#include <sys/types.h> 37#include <sys/mbuf.h> --- 149 unchanged lines hidden (view full) --- 187 ifp->if_transmit = tracer_transmit; 188 ifp->if_qflush = tracer_qflush; 189 ifp->if_capabilities = IFCAP_JUMBO_MTU | IFCAP_VLAN_MTU; 190 ifmedia_init(&sc->media, IFM_IMASK, tracer_media_change, 191 tracer_media_status); 192 ifmedia_add(&sc->media, IFM_ETHER | IFM_FDX | IFM_NONE, 0, NULL); 193 ifmedia_set(&sc->media, IFM_ETHER | IFM_FDX | IFM_NONE); 194 ether_ifattach(ifp, lla); | 30 31#include "opt_inet.h" 32#include "opt_inet6.h" 33 34#include <sys/param.h> 35#include <sys/lock.h> 36#include <sys/types.h> 37#include <sys/mbuf.h> --- 149 unchanged lines hidden (view full) --- 187 ifp->if_transmit = tracer_transmit; 188 ifp->if_qflush = tracer_qflush; 189 ifp->if_capabilities = IFCAP_JUMBO_MTU | IFCAP_VLAN_MTU; 190 ifmedia_init(&sc->media, IFM_IMASK, tracer_media_change, 191 tracer_media_status); 192 ifmedia_add(&sc->media, IFM_ETHER | IFM_FDX | IFM_NONE, 0, NULL); 193 ifmedia_set(&sc->media, IFM_ETHER | IFM_FDX | IFM_NONE); 194 ether_ifattach(ifp, lla); |
195 if_up(ifp); | |
196 197 mtx_lock(&sc->ifp_lock); 198 ifp->if_softc = sc; 199 sc->ifp = ifp; 200 mtx_unlock(&sc->ifp_lock); 201done: 202 sx_xunlock(&t4_trace_lock); 203 end_synchronized_op(sc, 0); --- 315 unchanged lines hidden --- | 195 196 mtx_lock(&sc->ifp_lock); 197 ifp->if_softc = sc; 198 sc->ifp = ifp; 199 mtx_unlock(&sc->ifp_lock); 200done: 201 sx_xunlock(&t4_trace_lock); 202 end_synchronized_op(sc, 0); --- 315 unchanged lines hidden --- |