Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix zero copy

2018-11-14 Thread Zhang, Roy Fan
[dpdk-dev] [PATCH] examples/vhost_crypto: fix zero copy > > On 2018-10-30 15:48, Fan Zhang wrote: > > This patch fixes the zero copy enable problem for vhost crypto sample > > application. > rte_mempool_free() already does a NULL-check (as per libc free() > convention), and if

Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix zero copy

2018-11-09 Thread Maxime Coquelin
Hi Fan, Could you please have a look at Mattias comments and reply? Thanks in advance, Maxime On 10/30/18 8:38 PM, Mattias Rönnblom wrote: On 2018-10-30 15:48, Fan Zhang wrote: This patch fixes the zero copy enable problem for vhost crypto sample application. For some Crypto PMDs such as AES

Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix zero copy

2018-10-30 Thread Mattias Rönnblom
On 2018-10-30 15:48, Fan Zhang wrote: This patch fixes the zero copy enable problem for vhost crypto sample application. For some Crypto PMDs such as AESNI-MB and AESNI-GCM the data to be processed will be made a copy in the same buffer but next to the data. For example, to encrypt 64 bytes data

[dpdk-dev] [PATCH] examples/vhost_crypto: fix zero copy

2018-10-30 Thread Fan Zhang
This patch fixes the zero copy enable problem for vhost crypto sample application. For some Crypto PMDs such as AESNI-MB and AESNI-GCM the data to be processed will be made a copy in the same buffer but next to the data. For example, to encrypt 64 bytes data the PMD will copy this data from offset