Deleted Added
full compact
sfxge_ev.c (280510) sfxge_ev.c (280513)
1/*-
2 * Copyright (c) 2010-2011 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

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2010-2011 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

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/10/sys/dev/sfxge/sfxge_ev.c 280510 2015-03-25 10:13:19Z arybchik $");
31__FBSDID("$FreeBSD: stable/10/sys/dev/sfxge/sfxge_ev.c 280513 2015-03-25 10:17:24Z arybchik $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35
36#include "common/efx.h"
37
38#include "sfxge.h"
39

--- 18 unchanged lines hidden (view full) ---

58
59 next = txq->next;
60 txq->next = NULL;
61
62 KASSERT(txq->evq_index == index,
63 ("txq->evq_index != index"));
64
65 if (txq->pending != txq->completed)
32
33#include <sys/param.h>
34#include <sys/systm.h>
35
36#include "common/efx.h"
37
38#include "sfxge.h"
39

--- 18 unchanged lines hidden (view full) ---

58
59 next = txq->next;
60 txq->next = NULL;
61
62 KASSERT(txq->evq_index == index,
63 ("txq->evq_index != index"));
64
65 if (txq->pending != txq->completed)
66 sfxge_tx_qcomplete(txq);
66 sfxge_tx_qcomplete(txq, evq);
67
68 txq = next;
69 } while (txq != NULL);
70 }
71
72 if (rxq->pending != rxq->completed)
73 sfxge_rx_qcomplete(rxq, eop);
74}

--- 177 unchanged lines hidden (view full) ---

252
253 if (txq->next == NULL &&
254 evq->txqs != &(txq->next)) {
255 *(evq->txqs) = txq;
256 evq->txqs = &(txq->next);
257 }
258
259 if (txq->pending - txq->completed >= SFXGE_TX_BATCH)
67
68 txq = next;
69 } while (txq != NULL);
70 }
71
72 if (rxq->pending != rxq->completed)
73 sfxge_rx_qcomplete(rxq, eop);
74}

--- 177 unchanged lines hidden (view full) ---

252
253 if (txq->next == NULL &&
254 evq->txqs != &(txq->next)) {
255 *(evq->txqs) = txq;
256 evq->txqs = &(txq->next);
257 }
258
259 if (txq->pending - txq->completed >= SFXGE_TX_BATCH)
260 sfxge_tx_qcomplete(txq);
260 sfxge_tx_qcomplete(txq, evq);
261
262done:
263 return (evq->tx_done >= SFXGE_EV_BATCH);
264}
265
266static boolean_t
267sfxge_ev_txq_flush_done(void *arg, uint32_t txq_index)
268{

--- 630 unchanged lines hidden ---
261
262done:
263 return (evq->tx_done >= SFXGE_EV_BATCH);
264}
265
266static boolean_t
267sfxge_ev_txq_flush_done(void *arg, uint32_t txq_index)
268{

--- 630 unchanged lines hidden ---