Received: by 10.192.165.148 with SMTP id m20csp486651imm; Fri, 20 Apr 2018 09:56:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48GIKkkBv89/SpVRQX5po86kHAzQqZkG3WAMpjE8RxK6hva7a/KIEAf5RJO3jRX4eKEKXWc X-Received: by 10.98.234.13 with SMTP id t13mr10487163pfh.56.1524243362847; Fri, 20 Apr 2018 09:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524243362; cv=none; d=google.com; s=arc-20160816; b=MM1EOd1ZRJCXaHcfGEhWE0pwOVzr02IE74UE6djoItq9HM7hqob36Vd8OrZzZeHQt2 sjqFV0ukc8J/cGBj7a4T7WArn3HZBqae/xLYJZkTt7iFWvFNzfhBaczZ0pLPWecYI0P1 SbDXFIDJm8M4HU+m6enYpAuliCnd6tU4YDwREfEyuL8MXKvCCrP0dLmwfJWRD6HVzqt4 1EZrst6x7FN+povRSZeUMlKuEktP5QO7lOsxnI7YH4HLqzu1zrhLASKagTBFBjO0Q5Xl QW2WknjDs+AkuPLdQ0Tfu9l6zraI/h8LIyi6LQ1b4bO6iJvvZ+ytVNycNk+Lj9/JFLOD NccQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=zt0r2enelGg/kC9fnS9u7SAjm+cljtj3fECHh/xooYk=; b=SrDSaJHH6WIYLr6CMFtHkq1aX7yqTAew49LIuaBBq+u3iS7107M5JwCfg9hvix8LnQ imSQQtBVVMdje0Nnew9Hcnbn7T679KdqPBflmncji2yDUkBmSZxPeKcLiCePdK3T9V7b sx7aIJ6bzqoZcnUs3bhxUoma8mfVrQP+dHOYE6DRzWklq32j1AiOgCoYWAeFhOFKAe78 1+GWpeiVLBGkRW8hCRfdV4fwkGDLQ2a2u8LJ7ArzP3qhnIm/AK/XKSVcyvxvcbDRS1pY qStzgTGViw7x00ih97D+z0s1XmTgy7JtgmlVwaKR8XVU+fHhePwbiuvRyLQzVCHsKvRQ isnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi10-v6si2415688plb.49.2018.04.20.09.55.48; Fri, 20 Apr 2018 09:56:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752881AbeDTQyj (ORCPT + 99 others); Fri, 20 Apr 2018 12:54:39 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:34424 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbeDTQyi (ORCPT ); Fri, 20 Apr 2018 12:54:38 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1f9ZIv-0001rl-S8; Sat, 21 Apr 2018 00:54:33 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1f9ZIu-0002GZ-4a; Sat, 21 Apr 2018 00:54:32 +0800 Date: Sat, 21 Apr 2018 00:54:32 +0800 From: Herbert Xu To: Jan Glauber Cc: "David S . Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Mahipal Challa , Balakrishna Bhamidipati Subject: Re: [PATCH] crypto: testmgr: Allow different compression results Message-ID: <20180420165432.etiqksfiqsiecdgz@gondor.apana.org.au> References: <20180411182832.27761-1-jglauber@cavium.com> <20180419034210.nsmzuf3f6lmn7suc@gondor.apana.org.au> <20180419115840.GA14706@hc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180419115840.GA14706@hc> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 01:58:40PM +0200, Jan Glauber wrote: > > Nice idea. Would a crypto_alloc_cipher("deflate", ...) pick the generic > implementation or how can we select it? For our ciphers we generally use the -generic suffix in the driver name. The compression algorithms seem to be all over the place on this so we should fix them all to use the -generic suffix and then we can simply append the -generic suffix here before allocating it. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt