diff options
author | np <np@FreeBSD.org> | 2013-01-26 01:41:42 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2013-01-26 01:41:42 +0000 |
commit | 9eab99fda3b0a5a2448aa02df1d2af494e53768e (patch) | |
tree | 6603ba092a22dbd5f95d0ee18990b22821372932 | |
parent | 62747ef26c161836e2f9e10ba2e0db033729f483 (diff) | |
download | FreeBSD-src-9eab99fda3b0a5a2448aa02df1d2af494e53768e.zip FreeBSD-src-9eab99fda3b0a5a2448aa02df1d2af494e53768e.tar.gz |
Add checks for SO_NO_OFFLOAD in a couple of places that I missed earlier
in r245915.
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 2cbba02..ef0aad1 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -537,6 +537,7 @@ tcp6_usr_connect(struct socket *so, struct sockaddr *nam, struct thread *td) goto out; #ifdef TCP_OFFLOAD if (registered_toedevs > 0 && + (so->so_options & SO_NO_OFFLOAD) == 0 && (error = tcp_offload_connect(so, nam)) == 0) goto out; #endif @@ -553,6 +554,7 @@ tcp6_usr_connect(struct socket *so, struct sockaddr *nam, struct thread *td) goto out; #ifdef TCP_OFFLOAD if (registered_toedevs > 0 && + (so->so_options & SO_NO_OFFLOAD) == 0 && (error = tcp_offload_connect(so, nam)) == 0) goto out; #endif |