From eddf4ff0094898fc3322a2f40652ad8d20d8b85b Mon Sep 17 00:00:00 2001 From: yongari Date: Mon, 10 Jan 2011 23:28:46 +0000 Subject: Implement TSO on RealTek RTL8168/8111 C or later controllers. RealTek changed TX descriptor format for later controllers so these controllers require MSS configuration in different location of TX descriptor. TSO is enabled by default for controllers that use new descriptor format. For old controllers, TSO is still disabled by default due to broken frames under certain conditions but users can enable it. Special thanks to Hayes Wang at RealTek. MFC after: 2 weeks --- sys/pci/if_rlreg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/pci') diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h index 9de7217..d7ffd40 100644 --- a/sys/pci/if_rlreg.h +++ b/sys/pci/if_rlreg.h @@ -657,6 +657,8 @@ struct rl_desc { #define RL_TDESC_CMD_UDPCSUMV2 0x80000000 #define RL_TDESC_CMD_TCPCSUMV2 0x40000000 #define RL_TDESC_CMD_IPCSUMV2 0x20000000 +#define RL_TDESC_CMD_MSSVALV2 0x1FFC0000 +#define RL_TDESC_CMD_MSSVALV2_SHIFT 18 /* * Error bits are valid only on the last descriptor of a frame -- cgit v1.1