sfxge_rx.c (301065) | sfxge_rx.c (301075) |
---|---|
1/*- 2 * Copyright (c) 2010-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * This software was developed in part by Philip Paeps under contract for 6 * Solarflare Communications, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * The views and conclusions contained in the software and documentation are 30 * those of the authors and should not be interpreted as representing official 31 * policies, either expressed or implied, of the FreeBSD Project. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_rx.c 301065 2016-05-31 18:31:17Z arybchik $"); | 35__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_rx.c 301075 2016-05-31 20:54:42Z arybchik $"); |
36 37#include <sys/param.h> 38#include <sys/malloc.h> 39#include <sys/mbuf.h> 40#include <sys/smp.h> 41#include <sys/socket.h> 42#include <sys/sysctl.h> 43#include <sys/syslog.h> --- 136 unchanged lines hidden (view full) --- 180 181 sc = rxq->sc; 182 index = rxq->index; 183 evq = sc->evq[index]; 184 185 label = 0; 186 KASSERT((label & SFXGE_MAGIC_DMAQ_LABEL_MASK) == label, 187 ("(label & SFXGE_MAGIC_DMAQ_LABEL_MASK) != level")); | 36 37#include <sys/param.h> 38#include <sys/malloc.h> 39#include <sys/mbuf.h> 40#include <sys/smp.h> 41#include <sys/socket.h> 42#include <sys/sysctl.h> 43#include <sys/syslog.h> --- 136 unchanged lines hidden (view full) --- 180 181 sc = rxq->sc; 182 index = rxq->index; 183 evq = sc->evq[index]; 184 185 label = 0; 186 KASSERT((label & SFXGE_MAGIC_DMAQ_LABEL_MASK) == label, 187 ("(label & SFXGE_MAGIC_DMAQ_LABEL_MASK) != level")); |
188 magic = SFXGE_MAGIC_RX_QREFILL | label; | 188 magic = SFXGE_SW_EV_MAGIC(SFXGE_SW_EV_RX_QREFILL) | label; |
189 190 /* This is guaranteed due to the start/stop order of rx and ev */ 191 KASSERT(evq->init_state == SFXGE_EVQ_STARTED, 192 ("evq not started")); 193 KASSERT(rxq->init_state == SFXGE_RXQ_STARTED, 194 ("rxq not started")); 195 efx_ev_qpost(evq->common, magic); 196} --- 1211 unchanged lines hidden --- | 189 190 /* This is guaranteed due to the start/stop order of rx and ev */ 191 KASSERT(evq->init_state == SFXGE_EVQ_STARTED, 192 ("evq not started")); 193 KASSERT(rxq->init_state == SFXGE_RXQ_STARTED, 194 ("rxq not started")); 195 efx_ev_qpost(evq->common, magic); 196} --- 1211 unchanged lines hidden --- |