Fix missing NET_EPOCH_ENTER() when compiled with TCP_OFFLOAD.

Reported by:	Coverity
CID:		1413162
This commit is contained in:
Gleb Smirnoff 2020-01-29 22:48:18 +00:00
parent 78373a5faa
commit 42ce79378d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357276

View File

@ -911,12 +911,12 @@ tcp_usr_rcvd(struct socket *so, int flags)
if (IS_FASTOPEN(tp->t_flags) &&
(tp->t_state == TCPS_SYN_RECEIVED))
goto out;
NET_EPOCH_ENTER(et);
#ifdef TCP_OFFLOAD
if (tp->t_flags & TF_TOE)
tcp_offload_rcvd(tp);
else
#endif
NET_EPOCH_ENTER(et);
tp->t_fb->tfb_tcp_output(tp);
NET_EPOCH_EXIT(et);
out: