aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2014-11-11 12:05:59 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2014-11-11 12:05:59 +0000
commit3c7c188c16d8d5cc62b804b16e9a2bc1c8efbc5c (patch)
treea16a61bc90e3abc4e45f247e0dcfe2e3fdf0fa79 /sys/net/if.c
parent00f22c06e8a1e36cbac03d96f1e5bb736d4bc705 (diff)
downloadsrc-3c7c188c16d8d5cc62b804b16e9a2bc1c8efbc5c.tar.gz
src-3c7c188c16d8d5cc62b804b16e9a2bc1c8efbc5c.zip
Fix some minor TSO issues:
- Improve description of TSO limits. - Remove a not needed KASSERT() - Remove some not needed variable casts. Sponsored by: Mellanox Technologies Discussed with: lstewart @ MFC after: 1 week
Notes
Notes: svn path=/head/; revision=274376
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 0103c3fdd5c4..d97e0e11cdf0 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -717,13 +717,6 @@ if_attach_internal(struct ifnet *ifp, int vmove)
ifp->if_hw_tsomaxsegsize);
}
}
- /*
- * If the "if_hw_tsomax" limit is set, check if it is
- * too small:
- */
- KASSERT(ifp->if_hw_tsomax == 0 ||
- ifp->if_hw_tsomax >= (IP_MAXPACKET / 8),
- ("%s: if_hw_tsomax is outside of range", __func__));
#endif
}
#ifdef VIMAGE