Commit c8ebb83
committed
digest: async mode switch to sw for small packets
hw v2 does not support msg->in_bytes = 0, refer
drv/hisi_sec.c: digest_bd2_type_check
if (type == HASH_SINGLE_BLOCK) {
WD_ERR("hardware v2 not supports 0 size in block hash!\n");
return -WD_EINVAL;
}
But Nginx does send packets with in_bytes=0, sync mode is OK
since it switches to sw, while async mode will fail.
Fixed by switching to sw for small packets in async mode too,
Though only in_bytes=0 matters.
Signed-off-by: Zhangfei Gao <[email protected]>1 parent f015022 commit c8ebb83
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
814 | 821 | | |
815 | 822 | | |
816 | 823 | | |
| |||
897 | 904 | | |
898 | 905 | | |
899 | 906 | | |
900 | | - | |
| 907 | + | |
901 | 908 | | |
902 | 909 | | |
903 | 910 | | |
904 | | - | |
| 911 | + | |
905 | 912 | | |
906 | 913 | | |
907 | 914 | | |
908 | 915 | | |
909 | 916 | | |
910 | 917 | | |
911 | | - | |
| 918 | + | |
912 | 919 | | |
913 | 920 | | |
914 | 921 | | |
| |||
0 commit comments