diff options
| author | Nicolas Ferre <[email protected]> | 2012-11-19 06:00:21 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-11-19 14:21:25 -0500 |
| commit | 909a85834d4e082501c26dd745b7caacf4eb1db3 (patch) | |
| tree | 5f92556445c6cea1485262d02658e11a3a3a7ff4 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | e5ef39eda6a1dfc045445d1199e5508703d139df (diff) | |
net/macb: move to circ_buf macros and fix initial condition
Move to circular buffers management macro and correct an error
with circular buffer initial condition.
Without this patch, the macb_tx_ring_avail() function was
not reporting the proper ring availability at startup:
macb macb: eth0: BUG! Tx Ring full when queue awake!
macb macb: eth0: tx_head = 0, tx_tail = 0
And hanginig forever...
I remove the macb_tx_ring_avail() function and use the
proven macros from circ_buf.h. CIRC_CNT() is used in the
"consumer" part of the driver: macb_tx_interrupt() to match
advice from Documentation/circular-buffers.txt.
Reported-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
Tested-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions