diff options
| author | Rick Macklem <rmacklem@FreeBSD.org> | 2014-04-21 19:17:19 +0000 |
|---|---|---|
| committer | Rick Macklem <rmacklem@FreeBSD.org> | 2014-04-21 19:17:19 +0000 |
| commit | 2aa76dba07cf4e6cb585070ade0dfcb881f372eb (patch) | |
| tree | 09710300cf67ac68c7b64f1c37f762d5d0f72378 /sys/netinet | |
| parent | c7b560b9b435193a1379cf4955e1a376403ea29c (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index bfad6b74345d..c73cb9769124 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1819,9 +1819,10 @@ tcp_maxmtu(struct in_conninfo *inc, struct tcp_ifcap *cap) /* Report additional interface capabilities. */ if (cap != NULL) { if (ifp->if_capenable & IFCAP_TSO4 && - ifp->if_hwassist & CSUM_TSO) + ifp->if_hwassist & CSUM_TSO) { cap->ifcap |= CSUM_TSO; cap->tsomax = ifp->if_hw_tsomax; + } } RTFREE(sro.ro_rt); } @@ -1857,9 +1858,10 @@ tcp_maxmtu6(struct in_conninfo *inc, struct tcp_ifcap *cap) /* Report additional interface capabilities. */ if (cap != NULL) { if (ifp->if_capenable & IFCAP_TSO6 && - ifp->if_hwassist & CSUM_TSO) + ifp->if_hwassist & CSUM_TSO) { cap->ifcap |= CSUM_TSO; cap->tsomax = ifp->if_hw_tsomax; + } } RTFREE(sro6.ro_rt); } |
