[TG3]: Always copy receive packets when 5701 PCIX workaround enabled.

Linux Kernel Mailing List <[email protected]>
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1521.17.1, 2005/01/17 13:42:05-08:00, [email protected]

	[TG3]: Always copy receive packets when 5701 PCIX workaround enabled.
	
	Signed-off-by: Arthur Kepner <[email protected]>
	Signed-off-by: David S. Miller <[email protected]>



 tg3.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


diff -Nru a/drivers/net/tg3.c b/drivers/net/tg3.c
--- a/drivers/net/tg3.c	2005-02-01 16:03:01 -08:00
+++ b/drivers/net/tg3.c	2005-02-01 16:03:01 -08:00
@@ -2690,7 +2690,11 @@
 
 		len = ((desc->idx_len & RXD_LEN_MASK) >> RXD_LEN_SHIFT) - 4; /* omit crc */
 
-		if (len > RX_COPY_THRESHOLD) {
+		if (len > RX_COPY_THRESHOLD 
+			&& tp->rx_offset == 2
+			/* rx_offset != 2 iff this is a 5701 card running
+			 * in PCI-X mode [see tg3_get_invariants()] */
+		) {
 			int skb_size;
 
 			skb_size = tg3_alloc_rx_skb(tp, opaque_key,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.