]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check TF_TOE not the tod pointer to determine if TOE is active.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 19 Oct 2020 18:24:06 +0000 (18:24 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 19 Oct 2020 18:24:06 +0000 (18:24 +0000)
commit6bcf3c46d8dde34c2921008554b853650b41cf7a
tree1dc163f12e72e82d3f23d23c2b11743d8935fb1a
parentecedef531b0c481f424513004db59c4e8943cf2b
Check TF_TOE not the tod pointer to determine if TOE is active.

The TF_TOE flag is the check used in the rest of the network stack to
determine if TOE is active on a socket.  There is at least one path in
the cxgbe(4) TOE driver that can leave the tod pointer non-NULL on a
socket not using TOE.

Reported by: Sony Arpita Das <sonyarpitad@chelsio.com>
Reviewed by: np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D26803
sys/kern/uipc_ktls.c