crypto/virtio: support device init
authorJay Zhou <jianjay.zhou@huawei.com>
Tue, 17 Apr 2018 09:23:18 +0000 (17:23 +0800)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Apr 2018 17:20:10 +0000 (18:20 +0100)
commit25500d4b8076e9b84c0d69108c64418470d1f65c
tree76548aef22bcfe28ce51acbf5ce35f970b1fb734
parent8769079ae09569fdfb8125c2dfe1ae83381928fb
crypto/virtio: support device init

This patch implements the initialization of the virtio crypto device.
The virtio crypto device conforms to virtio-1.0, so this patch only
supports modern mode operation.
The cryptodev is created at the virtio crypto pci device probing stage.
The function of virtio_crypto_pkt_tx_burst() is used to burst transfer
packets and virtio_crypto_pkt_rx_burst() is used to burst receive packets.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Reviewed-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/virtio/Makefile
drivers/crypto/virtio/meson.build
drivers/crypto/virtio/virtio_cryptodev.c
drivers/crypto/virtio/virtio_cryptodev.h
drivers/crypto/virtio/virtio_logs.h [new file with mode: 0644]
drivers/crypto/virtio/virtio_pci.c [new file with mode: 0644]
drivers/crypto/virtio/virtio_pci.h [new file with mode: 0644]
drivers/crypto/virtio/virtio_ring.h [new file with mode: 0644]
drivers/crypto/virtio/virtio_rxtx.c [new file with mode: 0644]
drivers/crypto/virtio/virtqueue.c [new file with mode: 0644]
drivers/crypto/virtio/virtqueue.h [new file with mode: 0644]