[PATCH 2.6.10] tg3: Fix TSO for 5750

STALE7858d

2 messages, 2 authors, 2005-01-24 · open the first message on its own page

[PATCH 2.6.10] tg3: Fix TSO for 5750

From: "Michael Chan" <mchan@broadcom.com>
Date: 2005-01-24 21:51:36

- Fix TSO for 5750 chips by setting tcp checksum field to 0 for TSO packets
- Add TG3_FLG2_HW_TSO flag for 5750 and newer chips that use the same TSO
scheme

Signed-off-by: Michael Chan <mchan@broadcom.com>

Re: [PATCH 2.6.10] tg3: Fix TSO for 5750

From: "David S. Miller" <davem@davemloft.net>
Date: 2005-01-24 22:41:00

On Mon, 24 Jan 2005 13:51:36 -0800
"Michael Chan" [off-list ref] wrote:
- Fix TSO for 5750 chips by setting tcp checksum field to 0 for TSO packets
- Add TG3_FLG2_HW_TSO flag for 5750 and newer chips that use the same TSO
scheme
If we've created this new TG3_FLG2_HW_TSO flag, we should eliminate
all 5750 tests which are just checking for that.

For example, this patch leaves the following test:

-		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) {
+		if ((tp->tg3_flags2 & TG3_FLG2_HW_TSO) ||
+		    (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705)) {

Here, just checking the TG3_FLG3_HW_TSO flag would suffice.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help