diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 21:14:41 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-16 07:04:09 -0400 |
commit | cb4812358423e7ea47d2b6471918d65238452cc5 (patch) | |
tree | baa325ecdec9ee88542a5e2350ecf48c3dc88d05 /include/asm-sparc64 | |
parent | 5a606b72a4309a656cd1a19ad137dc5557c4b8ea (diff) |
[SPARC64]: Assorted LDC bug cures.
1) LDC_MODE_RELIABLE is deprecated an unused by anything, plus
it and LDC_MODE_STREAM were mis-numbered.
2) read_stream() should try to read as much as possible into
the per-LDC stream buffer area, so do not trim the read_nonraw()
length by the caller's size parameter.
3) Send data ACKs when necessary in read_nonraw().
4) In read_nonraw() when we get a pure ACK, advance the RX head
unconditionally past it.
5) Provide the ACKID field in the ldcdgb() packet dump in read_nonraw().
This helps debugging stream mode LDC channel problems.
6) Decrease verbosity of rx_data_wait() so that it is more useful.
A debugging message each loop iteration is too much.
7) In process_data_ack() stop the loop checking when we hit lp->tx_tail
not lp->tx_head.
8) Set the seqid field properly in send_data_nack().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/ldc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/asm-sparc64/ldc.h b/include/asm-sparc64/ldc.h index 24fd2367d33a..1c13738f13ff 100644 --- a/include/asm-sparc64/ldc.h +++ b/include/asm-sparc64/ldc.h | |||
@@ -25,8 +25,7 @@ struct ldc_channel_config { | |||
25 | #define LDC_MODE_RAW 0x00 | 25 | #define LDC_MODE_RAW 0x00 |
26 | #define LDC_MODE_UNRELIABLE 0x01 | 26 | #define LDC_MODE_UNRELIABLE 0x01 |
27 | #define LDC_MODE_RESERVED 0x02 | 27 | #define LDC_MODE_RESERVED 0x02 |
28 | #define LDC_MODE_RELIABLE 0x03 | 28 | #define LDC_MODE_STREAM 0x03 |
29 | #define LDC_MODE_STREAM 0x04 | ||
30 | 29 | ||
31 | u8 debug; | 30 | u8 debug; |
32 | #define LDC_DEBUG_HS 0x01 | 31 | #define LDC_DEBUG_HS 0x01 |