sfxge_tx.c (278221) | sfxge_tx.c (278250) |
---|---|
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 --- 29 unchanged lines hidden (view full) --- 38 * 39 * So, event queue plus label mapping to Tx queue index is: 40 * if event queue index is 0, TxQ-index = TxQ-label * [0..SFXGE_TXQ_NTYPES) 41 * else TxQ-index = SFXGE_TXQ_NTYPES + EvQ-index - 1 42 * See sfxge_get_txq_by_label() sfxge_ev.c 43 */ 44 45#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 --- 29 unchanged lines hidden (view full) --- 38 * 39 * So, event queue plus label mapping to Tx queue index is: 40 * if event queue index is 0, TxQ-index = TxQ-label * [0..SFXGE_TXQ_NTYPES) 41 * else TxQ-index = SFXGE_TXQ_NTYPES + EvQ-index - 1 42 * See sfxge_get_txq_by_label() sfxge_ev.c 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_tx.c 278221 2015-02-04 20:03:57Z arybchik $"); | 46__FBSDID("$FreeBSD: head/sys/dev/sfxge/sfxge_tx.c 278250 2015-02-05 11:39:15Z arybchik $"); |
47 48#include <sys/types.h> 49#include <sys/mbuf.h> 50#include <sys/smp.h> 51#include <sys/socket.h> 52#include <sys/sysctl.h> 53#include <sys/syslog.h> 54 --- 1407 unchanged lines hidden (view full) --- 1462 1463 /* Initialize the deferred packet list. */ 1464 stdp = &txq->dpl; 1465 stdp->std_put_max = sfxge_tx_dpl_put_max; 1466 stdp->std_get_max = sfxge_tx_dpl_get_max; 1467 stdp->std_get_non_tcp_max = sfxge_tx_dpl_get_non_tcp_max; 1468 stdp->std_getp = &stdp->std_get; 1469 | 47 48#include <sys/types.h> 49#include <sys/mbuf.h> 50#include <sys/smp.h> 51#include <sys/socket.h> 52#include <sys/sysctl.h> 53#include <sys/syslog.h> 54 --- 1407 unchanged lines hidden (view full) --- 1462 1463 /* Initialize the deferred packet list. */ 1464 stdp = &txq->dpl; 1465 stdp->std_put_max = sfxge_tx_dpl_put_max; 1466 stdp->std_get_max = sfxge_tx_dpl_get_max; 1467 stdp->std_get_non_tcp_max = sfxge_tx_dpl_get_non_tcp_max; 1468 stdp->std_getp = &stdp->std_get; 1469 |
1470 SFXGE_TXQ_LOCK_INIT(txq, "txq"); | 1470 SFXGE_TXQ_LOCK_INIT(txq, device_get_nameunit(sc->dev), txq_index); |
1471 1472 SYSCTL_ADD_UINT(device_get_sysctl_ctx(sc->dev), 1473 SYSCTL_CHILDREN(txq_node), OID_AUTO, 1474 "dpl_get_count", CTLFLAG_RD | CTLFLAG_STATS, 1475 &stdp->std_get_count, 0, ""); 1476 SYSCTL_ADD_UINT(device_get_sysctl_ctx(sc->dev), 1477 SYSCTL_CHILDREN(txq_node), OID_AUTO, 1478 "dpl_get_non_tcp_count", CTLFLAG_RD | CTLFLAG_STATS, --- 155 unchanged lines hidden --- | 1471 1472 SYSCTL_ADD_UINT(device_get_sysctl_ctx(sc->dev), 1473 SYSCTL_CHILDREN(txq_node), OID_AUTO, 1474 "dpl_get_count", CTLFLAG_RD | CTLFLAG_STATS, 1475 &stdp->std_get_count, 0, ""); 1476 SYSCTL_ADD_UINT(device_get_sysctl_ctx(sc->dev), 1477 SYSCTL_CHILDREN(txq_node), OID_AUTO, 1478 "dpl_get_non_tcp_count", CTLFLAG_RD | CTLFLAG_STATS, --- 155 unchanged lines hidden --- |