diff options
author | arybchik <arybchik@FreeBSD.org> | 2015-03-25 13:12:15 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2015-03-25 13:12:15 +0000 |
commit | ba7bae884a82938e29ce6d89af1e64b298f1c24c (patch) | |
tree | a3289480bfb89142e81f18d544f93e02fdf11a96 /sys/dev/sfxge/common/efx.h | |
parent | 7226fa93cac4e7cc7b3b6004265f143f7ef24d4c (diff) | |
download | FreeBSD-src-ba7bae884a82938e29ce6d89af1e64b298f1c24c.zip FreeBSD-src-ba7bae884a82938e29ce6d89af1e64b298f1c24c.tar.gz |
MFC: 279183
sfxge: add common code support for changing TX queue pace
To delay packets from a particular TX queue by a particular time, write a value
into the TX Pace table s.t. pace time <= TX Pace Clock Period * (2 ^ pace value)
- the TX pace clock is 1/13 of the system clock, so its period should be 104 or
52 ns depending on whether turbo mode is active.
EFX_TX_PACE_CLOCK_BASE added by me.
Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
Approved by: gnn (mentor)
Diffstat (limited to 'sys/dev/sfxge/common/efx.h')
-rw-r--r-- | sys/dev/sfxge/common/efx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/efx.h b/sys/dev/sfxge/common/efx.h index c5f832f..c5ef448 100644 --- a/sys/dev/sfxge/common/efx.h +++ b/sys/dev/sfxge/common/efx.h @@ -1736,6 +1736,11 @@ efx_tx_qpost( __in unsigned int completed, __inout unsigned int *addedp); +extern __checkReturn int +efx_tx_qpace( + __in efx_txq_t *etp, + __in unsigned int ns); + extern void efx_tx_qpush( __in efx_txq_t *etp, |