Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3119793ybt; Mon, 22 Jun 2020 15:44:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE0QTAF1t0mLsN0IgqngSrfge4rXGBBNyOyr/gjfJR7dLA601A1gR1GOG7O5/whabHECLU X-Received: by 2002:a17:906:fcae:: with SMTP id qw14mr18658743ejb.166.1592865880502; Mon, 22 Jun 2020 15:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592865880; cv=none; d=google.com; s=arc-20160816; b=kJLdM13wfKT1BQvegM4C/jbJI5aEdLiPqbVEs47IMXXxHxKGWFG6/Vpuc7Zu6ooK4h NoTk0BmMBPWZ52io6waiWUwqsrX5/99hSsSaJle/sFCBohmxVD/MvMvWvLlzBsqAHuTQ qWfor5QVKeb+Yx3OSK9mLo15ZuTq3SpAjKVEbrHd3X1KO86qJ6jR74X1fmh9TfIE3z2B t7Rikn+rkSu0FqAUSDW+ELxXipzi1Rm32sU9iHTo6tA2Kv7apkCqYYyNj5Su7WI0vFJk SsO5isdAxWXLHHY2jdE4xBABkVktCs5FqwY26hZMNzUYiasvbV76pbkyfHmfNVjCq1Q2 VfzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=gG4ViKlqHs+bZ1JrYdtK7GYOfRKYKE+Lvbx8mA4NSYs=; b=RfzHjlXQyeNUb7qZWVMaazFw0OW5XO1QYz23N/aELwaaRxS1ENxj0fYCLw1mpo7bEO cPzbZ/L5GhVH3HS877ie8PtUp9jSY11mqrXG7+Jmp7drIpmh3MQz3iDLZoIlF40MChXS YNURERl3RaBKkfgEw3EcpO1BtKytbZfFxInROJuxC6ZxIYMi9z0xFlWpXUCWSltLy9Tu bn6py6vYUzXEh3cp2ORbezdVjSsTIn5xv9FpuyuxZ/Wn8QThYv7THxktlR4nae3qq/uj Ew007URcK4c7qqBe34y9y14skiz3ocOy0y9inGToFIjSa9L6Dkt4+4KArcRuaP0mhGnW p8lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl17si9558278ejb.336.2020.06.22.15.44.17; Mon, 22 Jun 2020 15:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731055AbgFVWjP (ORCPT + 99 others); Mon, 22 Jun 2020 18:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730785AbgFVWjP (ORCPT ); Mon, 22 Jun 2020 18:39:15 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06B75C061573; Mon, 22 Jun 2020 15:39:15 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 001211296A2B3; Mon, 22 Jun 2020 15:39:13 -0700 (PDT) Date: Mon, 22 Jun 2020 15:39:13 -0700 (PDT) Message-Id: <20200622.153913.2174708105885098663.davem@davemloft.net> To: jarod@redhat.com Cc: linux-kernel@vger.kernel.org, j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, jeffrey.t.kirsher@intel.com, kuba@kernel.org, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH net-next v3 0/4] bonding: initial support for hardware crypto offload From: David Miller In-Reply-To: <20200619143155.20726-1-jarod@redhat.com> References: <20200619143155.20726-1-jarod@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 22 Jun 2020 15:39:14 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jarod Wilson Date: Fri, 19 Jun 2020 10:31:51 -0400 > This is an initial functional implementation for doing pass-through of > hardware encryption from bonding device to capable slaves, in active-backup > bond setups. This was developed and tested using ixgbe-driven Intel x520 > interfaces with libreswan and a transport mode connection, primarily using > netperf, with assorted connection failures forced during transmission. The > failover works quite well in my testing, and overall performance is right > on par with offload when running on a bare interface, no bond involved. > > Caveats: this is ONLY enabled for active-backup, because I'm not sure > how one would manage multiple offload handles for different devices all > running at the same time in the same xfrm, and it relies on some minor > changes to both the xfrm code and slave device driver code to get things > to behave, and I don't have immediate access to any other hardware that > could function similarly, but the NIC driver changes are minimal and > straight-forward enough that I've included what I think ought to be > enough for mlx5 devices too. > > v2: reordered patches, switched (back) to using CONFIG_XFRM_OFFLOAD > to wrap the code additions and wrapped overlooked additions. > v3: rebase w/net-next open, add proper cc list to cover letter Series applied, thanks.