Commit e07560cd authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik
Browse files

[PATCH] sky2: TSO mss optimization



The MSS in the transmit engine only has to change if TSO mtu changes. This
means less commands to the chip when mixing TSO and regular data.

Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent bb507fe1
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -1244,7 +1244,6 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev)
		mss += ((skb->h.th->doff - 5) * 4);	/* TCP options */
		mss += (skb->nh.iph->ihl * 4) + sizeof(struct tcphdr);
		mss += ETH_HLEN;
	}

		if (mss != sky2->tx_last_mss) {
			le = get_tx_le(sky2);
@@ -1254,6 +1253,7 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev)
			le->ctrl = 0;
			sky2->tx_last_mss = mss;
		}
	}

	ctrl = 0;
#ifdef SKY2_VLAN_TAG_USED