summaryrefslogtreecommitdiffstats
path: root/lib/libc++
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2018-03-28 17:49:31 +0000
committerjhb <jhb@FreeBSD.org>2018-03-28 17:49:31 +0000
commit2b037a44ad3c720e880a257c7d6bd8e0e9dbb423 (patch)
treebbee4a520eaf91bc93bd08a78819d8048ca21498 /lib/libc++
parentbe4e6436a35050ab09cb19b5d3d28c899f986813 (diff)
downloadFreeBSD-src-2b037a44ad3c720e880a257c7d6bd8e0e9dbb423.zip
FreeBSD-src-2b037a44ad3c720e880a257c7d6bd8e0e9dbb423.tar.gz
MFC 331248: Set the proper vnet in IPsec callback functions.
When using hardware crypto engines, the callback functions used to handle an IPsec packet after it has been encrypted or decrypted can be invoked asynchronously from a worker thread that is not associated with a vnet. Extend 'struct xform_data' to include a vnet pointer and save the current vnet in this new member when queueing crypto requests in IPsec. In the IPsec callback routines, use the new member to set the current vnet while processing the modified packet. This fixes a panic when using hardware offload such as ccr(4) with IPsec after VIMAGE was enabled in GENERIC. Sponsored by: Chelsio Communications
Diffstat (limited to 'lib/libc++')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud