diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-11-11 12:05:59 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-11-11 12:05:59 +0000 |
commit | 4d1b5f70ee0bf0a60ac9e1a7806fe21a1e3c7556 (patch) | |
tree | a16a61bc90e3abc4e45f247e0dcfe2e3fdf0fa79 /sys/net/if.c | |
parent | b786a57a348cc97896eea33fb19295b9947103e0 (diff) | |
download | FreeBSD-src-4d1b5f70ee0bf0a60ac9e1a7806fe21a1e3c7556.zip FreeBSD-src-4d1b5f70ee0bf0a60ac9e1a7806fe21a1e3c7556.tar.gz |
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
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 0103c3f..d97e0e1 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 |