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>
This commit is contained in:
Zaibo Xu
2019-11-13 19:11:05 +08:00
committed by Herbert Xu
parent 416d82204d
commit 73bcb049a7
2 changed files with 153 additions and 3 deletions

View File

@@ -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;
};