Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136985131
D7872.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7872.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -232,12 +232,10 @@
"Trust ip packet verification on host side, "
"when csum info is missing (global setting)");
-#if __FreeBSD_version >= 1100045
/* Limit TSO burst size */
static int hn_tso_maxlen = 0;
SYSCTL_INT(_hw_hn, OID_AUTO, tso_maxlen, CTLFLAG_RDTUN,
&hn_tso_maxlen, 0, "TSO burst limit");
-#endif
/* Limit chimney send size */
static int hn_tx_chimney_size = 0;
@@ -452,9 +450,7 @@
uint32_t link_status;
struct ifnet *ifp = NULL;
int error, ring_cnt, tx_ring_cnt;
-#if __FreeBSD_version >= 1100045
int tso_maxlen;
-#endif
sc->hn_dev = dev;
sc->hn_prichan = vmbus_get_channel(dev);
@@ -587,7 +583,6 @@
if (link_status == NDIS_MEDIA_STATE_CONNECTED)
sc->hn_carrier = 1;
-#if __FreeBSD_version >= 1100045
tso_maxlen = hn_tso_maxlen;
if (tso_maxlen <= 0 || tso_maxlen > IP_MAXPACKET)
tso_maxlen = IP_MAXPACKET;
@@ -596,17 +591,14 @@
ifp->if_hw_tsomaxsegsize = PAGE_SIZE;
ifp->if_hw_tsomax = tso_maxlen -
(ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
-#endif
error = hn_rndis_get_eaddr(sc, eaddr);
if (error)
goto failed;
ether_ifattach(ifp, eaddr);
-#if __FreeBSD_version >= 1100045
if_printf(ifp, "TSO: %u/%u/%u\n", ifp->if_hw_tsomax,
ifp->if_hw_tsomaxsegcount, ifp->if_hw_tsomaxsegsize);
-#endif
hn_set_chim_size(sc, sc->hn_chim_szmax);
if (hn_tx_chimney_size > 0 &&
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 10:13 PM (9 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25814681
Default Alt Text
D7872.diff (1 KB)
Attached To
Mode
D7872: hyperv/hn: Remove the FreeBSD_version check for TSO configuration
Attached
Detach File
Event Timeline
Log In to Comment