[PATCH] sky2: optimize checksum offload information

Since many packets have the same checksum starting offset and insertion
location; the driver can save the last information and only tell hardware
when it changes.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
shemminger@osdl.org
2006-08-28 10:00:50 -07:00
committed by Jeff Garzik
parent e07560cd4f
commit 1d179332f8
2 changed files with 13 additions and 6 deletions

View File

@@ -1843,6 +1843,8 @@ struct sky2_port {
u32 tx_addr64;
u16 tx_pending;
u16 tx_last_mss;
u16 tx_csum_start;
u16 tx_csum_offset;
struct ring_info *rx_ring ____cacheline_aligned_in_smp;
struct sky2_rx_le *rx_le;