Add checks for SO_NO_OFFLOAD in a couple of places that I missed earlier
in r245915.
This commit is contained in:
parent
7ca5c8632d
commit
adfaf8f6ad
@ -537,6 +537,7 @@ tcp6_usr_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
|
|||||||
goto out;
|
goto out;
|
||||||
#ifdef TCP_OFFLOAD
|
#ifdef TCP_OFFLOAD
|
||||||
if (registered_toedevs > 0 &&
|
if (registered_toedevs > 0 &&
|
||||||
|
(so->so_options & SO_NO_OFFLOAD) == 0 &&
|
||||||
(error = tcp_offload_connect(so, nam)) == 0)
|
(error = tcp_offload_connect(so, nam)) == 0)
|
||||||
goto out;
|
goto out;
|
||||||
#endif
|
#endif
|
||||||
@ -553,6 +554,7 @@ tcp6_usr_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
|
|||||||
goto out;
|
goto out;
|
||||||
#ifdef TCP_OFFLOAD
|
#ifdef TCP_OFFLOAD
|
||||||
if (registered_toedevs > 0 &&
|
if (registered_toedevs > 0 &&
|
||||||
|
(so->so_options & SO_NO_OFFLOAD) == 0 &&
|
||||||
(error = tcp_offload_connect(so, nam)) == 0)
|
(error = tcp_offload_connect(so, nam)) == 0)
|
||||||
goto out;
|
goto out;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user