svn commit: r220555 - head/sys/ofed/drivers/infiniband/ulp/ipoib
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Apr 12 01:19:24 UTC 2011
Author: bz
Date: Tue Apr 12 01:19:23 2011
New Revision: 220555
URL: http://svn.freebsd.org/changeset/base/220555
Log:
Even though this block is not compiled currently, properly assign
CSUM_TSO to if_hwassist rather than if_capabilities to avoid future
errors.
Reviewed by: jeff
Modified:
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
Modified: head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c Tue Apr 12 00:38:22 2011 (r220554)
+++ head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c Tue Apr 12 01:19:23 2011 (r220555)
@@ -924,8 +924,10 @@ ipoib_set_dev_features(struct ipoib_dev_
}
#if 0
- if (priv->dev->features & NETIF_F_SG && priv->hca_caps & IB_DEVICE_UD_TSO)
- priv->dev->if_capabilities |= IFCAP_TSO4 | CSUM_TSO;
+ if (priv->dev->features & NETIF_F_SG && priv->hca_caps & IB_DEVICE_UD_TSO) {
+ priv->dev->if_capabilities |= IFCAP_TSO4;
+ priv->dev->if_hwassist |= CSUM_TSO;
+ }
#endif
#endif
priv->dev->if_capabilities |=
More information about the svn-src-head
mailing list