summaryrefslogtreecommitdiff
path: root/drivers/crypto/hisilicon/sec2/sec.h
diff options
context:
space:
mode:
authorZaibo Xu <xuzaibo@huawei.com>2019-11-13 19:11:05 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-22 18:48:36 +0800
commit73bcb049a77ba75b694cb4142b3a3ef09584a77c (patch)
treeeffce4cd0dc5d4b4dfd131c7072c89ba7ec474f1 /drivers/crypto/hisilicon/sec2/sec.h
parent416d82204df44ef727de6eafafeaa4d12fdc78dc (diff)
crypto: hisilicon - add SRIOV for HiSilicon SEC
HiSilicon SEC engine supports PCI SRIOV. This patch enable this feature. User can enable VFs and pass through them to VM, same SEC driver can work in VM to provide skcipher algorithms. Signed-off-by: Zaibo Xu <xuzaibo@huawei.com> Signed-off-by: Longfang Liu <liulongfang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/sec2/sec.h')
-rw-r--r--drivers/crypto/hisilicon/sec2/sec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/sec2/sec.h b/drivers/crypto/hisilicon/sec2/sec.h
index 443b6c5e5d3a..69b37f22fcc9 100644
--- a/drivers/crypto/hisilicon/sec2/sec.h
+++ b/drivers/crypto/hisilicon/sec2/sec.h
@@ -123,6 +123,7 @@ struct sec_dev {
struct hisi_qm qm;
struct list_head list;
u32 ctx_q_num;
+ u32 num_vfs;
unsigned long status;
};