From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49849FA372C for ; Fri, 8 Nov 2019 11:10:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17283206BA for ; Fri, 8 Nov 2019 11:10:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IJUSe34b" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731824AbfKHLKn (ORCPT ); Fri, 8 Nov 2019 06:10:43 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:59395 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731794AbfKHLKm (ORCPT ); Fri, 8 Nov 2019 06:10:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573211441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3nYT87qwUirFN/Bs+GrE3cX/9b5VoxR9UXPdSVM6IKE=; b=IJUSe34bM28JDjf/zmmMJXIT/HXU/fmVQi+n071sq0CaGNWTkVUDbkXM6AqAOu9UAH5UCr OpYkhIaXj4mabV1X1RyGPE9Ls8F3CSOLO8F6xwdJzG141o1KoRNqZa7AmSRr9taqhCif0R m0zQiy7e8Udru1aUp2CJQBIxuPkciIA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-63-eir2viv0OcmvHDnBioCDyQ-1; Fri, 08 Nov 2019 06:10:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8CED11800D7B; Fri, 8 Nov 2019 11:10:35 +0000 (UTC) Received: from gondolin (dhcp-192-218.str.redhat.com [10.33.192.218]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEF625DA7F; Fri, 8 Nov 2019 11:10:32 +0000 (UTC) Date: Fri, 8 Nov 2019 12:10:30 +0100 From: Cornelia Huck To: Parav Pandit Cc: alex.williamson@redhat.com, davem@davemloft.net, kvm@vger.kernel.org, netdev@vger.kernel.org, saeedm@mellanox.com, kwankhede@nvidia.com, leon@kernel.org, jiri@mellanox.com, linux-rdma@vger.kernel.org Subject: Re: [PATCH net-next 07/19] vfio/mdev: Introduce sha1 based mdev alias Message-ID: <20191108121030.5466dd3e.cohuck@redhat.com> In-Reply-To: <20191107160834.21087-7-parav@mellanox.com> References: <20191107160448.20962-1-parav@mellanox.com> <20191107160834.21087-1-parav@mellanox.com> <20191107160834.21087-7-parav@mellanox.com> Organization: Red Hat GmbH MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: eir2viv0OcmvHDnBioCDyQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Thu, 7 Nov 2019 10:08:22 -0600 Parav Pandit wrote: > Some vendor drivers want an identifier for an mdev device that is > shorter than the UUID, due to length restrictions in the consumers of > that identifier. >=20 > Add a callback that allows a vendor driver to request an alias of a > specified length to be generated for an mdev device. If generated, > that alias is checked for collisions. >=20 > It is an optional attribute. > mdev alias is generated using sha1 from the mdev name. >=20 > Reviewed-by: Saeed Mahameed > Signed-off-by: Parav Pandit > --- > drivers/vfio/mdev/mdev_core.c | 123 ++++++++++++++++++++++++++++++- > drivers/vfio/mdev/mdev_private.h | 5 +- > drivers/vfio/mdev/mdev_sysfs.c | 13 ++-- > include/linux/mdev.h | 4 + > 4 files changed, 135 insertions(+), 10 deletions(-) Is this (or any of the other mdev alias patches) different from what I reviewed in the past?