]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge: add common code support for changing TX queue pace
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Sun, 22 Feb 2015 19:24:08 +0000 (19:24 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Sun, 22 Feb 2015 19:24:08 +0000 (19:24 +0000)
commit2fc13da641fbd993823678ceb4cc143e2a3d5d56
tree9b1db7c6a685938cf308104a52001e9e3032b36c
parentaf9078c3f1cf72fb918eaf5d01539e2481c78afc
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)
sys/dev/sfxge/common/efx.h
sys/dev/sfxge/common/efx_regs.h
sys/dev/sfxge/common/efx_tx.c