From owner-freebsd-hackers@freebsd.org Mon Oct 26 20:01:06 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E726644D816 for ; Mon, 26 Oct 2020 20:01:06 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CKm1F75dQz4gJb for ; Mon, 26 Oct 2020 20:01:05 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x734.google.com with SMTP id j129so5769861qke.5 for ; Mon, 26 Oct 2020 13:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:mime-version :content-disposition; bh=cXyp0EwFPppkutoNSqv14xbLac2ia4i3RFIhYVoWx28=; b=X1p/CXF69z8607x5ozxkRcKw8xmEBsXjyXKGfYonkDilrD7sre/T089qvAQDfbjksS J4j86URQZcjoTP5mYVaWjIL4gOweXdThN8e9l0uJ0ixxOYE2rbopYvUu67uogl2LSU6X BcuOn8cm1FWPD1Ja7wkls5UXjf4WVRYcjrEQMD8Zy3vUCJYjiDtcaaipbQLauDwsPFzj IPOkcTaXKkL0+c0PqEDuQW2CufL9DbEi6ZFz2z6EI4lk5OrRk+hoVy+KMWhUYnmWdwX5 GJjheUIbPEn1j7l9LQd20BkEZmQOJyNzImP+mPdXASX45E7LtgmLhc29jc6y9TfNQObX 7WJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-disposition; bh=cXyp0EwFPppkutoNSqv14xbLac2ia4i3RFIhYVoWx28=; b=VeiViB2tPy55esizUj2Y81qyhCpq6IVfjdRQl7W5NQepkNuVUBCcWBIrPtCxfGRhCv Mp1EUveps1B64xlwQbP1l+WfQRiOgbMddQ8P4sDtY9D2tGIRybWom4fNdwfCVU+i1PfN NakzJuZFV47mNIjFLJHwmDpgFXH2/Gd5GcRXU6xxW47gbR3ilyna0FKGDj9Eft7FOzGj eX8G6duAuOanUmZOFy+UOh/N30FESsD+S1gfkSRWknnZeElRXwuHYh+SZ8mWzuJCQE9g AlD4zGgRxPFkOEqn7TUs+0fFEFRHxoGBtNf/g2yKq2705eWRZ+8Xaghc1Y2j6uGz2WzD 1HcQ== X-Gm-Message-State: AOAM530uYW8wt5A68gQepiIFQwYt8dhRQJ7cLU73MGNdwG9wjRKuOuJ3 /Hnfg8Y1qZ4gNnDesWD/NGGYlKI1RkQ= X-Google-Smtp-Source: ABdhPJwguq2NVQObGl3z1YrBzqg5HsgaGKlQ5/GbfRzBk1VFBNC1N08zDMxE33N3K7MEh13gGfjL6A== X-Received: by 2002:a37:de02:: with SMTP id h2mr2398361qkj.99.1603742464850; Mon, 26 Oct 2020 13:01:04 -0700 (PDT) Received: from raichu (toroon0560w-lp130-01-174-88-77-103.dsl.bell.ca. [174.88.77.103]) by smtp.gmail.com with ESMTPSA id 79sm7045636qkl.42.2020.10.26.13.01.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 13:01:04 -0700 (PDT) Sender: Mark Johnston Date: Mon, 26 Oct 2020 16:00:59 -0400 From: Mark Johnston To: freebsd-hackers@freebsd.org Subject: QAT driver Message-ID: <20201026200059.GA66299@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4CKm1F75dQz4gJb X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=X1p/CXF6; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::734 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.89 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-0.17)[-0.166]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.024]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::734:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2020 20:01:07 -0000 Hi, I did a port of NetBSD's qat(4) to FreeBSD for pfSense, and made some enhancements. This provides an opencrypto-compatible driver for Intel's QuickAssist devices, aimed mainly to be used with IPSec. A review is posted here for anyone interested in reviewing: https://reviews.freebsd.org/D26963 So far it's mostly been tested on an Atom C3000, where some ad-hoc testing with iperf3 shows ~20-30% improvements relative to aesni(4) and some reduction in CPU usage. I've done some functional testing on a Xeon system with a 8950 adapter as well. If anyone is interested in testing the driver, please send me email. Some firmware images not included in the review above are required in order to test. I plan to port it to stable/12 shortly. Thanks, -Mark