aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/crypto/hisilicon/hpre/hpre.h
diff options
context:
space:
mode:
authorZaibo Xu <xuzaibo@huawei.com>2019-09-30 17:20:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-10-10 23:36:32 +1100
commit5ec302a364bfd95be29a9784b2fabd8e2ddf0476 (patch)
tree2bc29ef98ec571714ac753c680eeeb607d8c93ac /drivers/crypto/hisilicon/hpre/hpre.h
parentcrypto: hisilicon - add HiSilicon HPRE accelerator (diff)
downloadwireguard-linux-5ec302a364bfd95be29a9784b2fabd8e2ddf0476.tar.xz
wireguard-linux-5ec302a364bfd95be29a9784b2fabd8e2ddf0476.zip
crypto: hisilicon - add SRIOV support for HPRE
HiSilicon HPRE engine supports PCI SRIOV. This patch enable this feature. User can enable VFs and pass through them to VM, same HPRE driver can work in VM to provide RSA and DH algorithms by crypto akcipher and kpp interfaces. Signed-off-by: Zaibo Xu <xuzaibo@huawei.com> Signed-off-by: Hui tang <tanghui20@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/hpre/hpre.h')
-rw-r--r--drivers/crypto/hisilicon/hpre/hpre.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/hpre/hpre.h b/drivers/crypto/hisilicon/hpre/hpre.h
index d2195998eca5..bcf825b12c73 100644
--- a/drivers/crypto/hisilicon/hpre/hpre.h
+++ b/drivers/crypto/hisilicon/hpre/hpre.h
@@ -14,6 +14,7 @@
struct hpre {
struct hisi_qm qm;
struct list_head list;
+ u32 num_vfs;
unsigned long status;
};