Based on the Token bucket algorithm. The QM can limit the throughput of functions in Kunpeng930. By the device debugfs node that named "alg_qos", the ACC driver supports to configue each function's QoS in the host. Based on the communication between pf and vf, the driver supports reading each function's QoS in the host and VM also by the debugfs node. Kai Ye (8): crypto: hisilicon/qm - supports writing QoS int the Host crypto: hisilicon/qm - add the "alg_qos" file node crypto: hisilicon/qm - merges the work initialization process into a single function crypto: hisilicon/qm - add pf ping single vf function crypto: hisilicon/qm - supports to inquiry each function's QoS crypto: hisilicon/sec - adds the max shaper type rate crypto: hisilicon/hpre - adds the max shaper type rate crypto: hisilicon/zip - adds the max shaper type rate drivers/crypto/hisilicon/hpre/hpre_main.c | 7 + drivers/crypto/hisilicon/qm.c | 909 +++++++++++++++++++++++------- drivers/crypto/hisilicon/qm.h | 14 + drivers/crypto/hisilicon/sec2/sec_main.c | 7 + drivers/crypto/hisilicon/zip/zip_main.c | 11 + 5 files changed, 757 insertions(+), 191 deletions(-) -- 2.7.4