Re: [PATCH v2 2/2] vdpa/mlx5: Add support for reading descriptor statistics

2022-04-18 Thread kernel test robot
nfig: i386-randconfig-s001-20220418 (https://download.01.org/0day-ci/archive/20220419/202204190335.6x3zxwpl-...@intel.com/config) compiler: gcc-11 (Debian 11.2.0-19) 11.2.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/intel-lab-lkp/li

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-04-18 Thread Thomas Zimmermann
Hi Am 18.04.22 um 00:37 schrieb Dmitry Osipenko: Replace drm_gem_shmem locks with the reservation lock to make GEM lockings more consistent. Previously drm_gem_shmem_vmap() and drm_gem_shmem_get_pages() were protected by separate locks, now it's the same lock, but it doesn't make any difference

Re: [PATCH v4 09/15] drm/shmem-helper: Correct doc-comment of drm_gem_shmem_get_sg_table()

2022-04-18 Thread Thomas Zimmermann
Hi Am 18.04.22 um 00:37 schrieb Dmitry Osipenko: drm_gem_shmem_get_sg_table() never returns NULL on error, but a ERR_PTR. Correct the doc comment which says that it returns NULL on error. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 5 +++-- 1 file changed

Re: [PATCH net 2/2] virtio_net: check L3 protocol for VLAN packets

2022-04-18 Thread Willem de Bruijn
On Mon, Apr 18, 2022 at 12:44 AM Hangbin Liu wrote: > > For gso packets, virtio_net_hdr_to_skb() will check the protocol via > virtio_net_hdr_match_proto(). But a packet may come from a raw socket > with a VLAN tag. Checking the VLAN protocol for virtio net_hdr makes no > sense. Let's check the L3

Re: [PATCH net 1/2] net/af_packet: adjust network header position for VLAN tagged packets

2022-04-18 Thread Willem de Bruijn
On Mon, Apr 18, 2022 at 12:44 AM Hangbin Liu wrote: > > Flavio reported that the kernel drops GSO VLAN tagged packet if it's > created with socket(AF_PACKET, SOCK_RAW, 0) plus virtio_net_hdr. > > The reason is AF_PACKET doesn't adjust the skb network header if there is > a VLAN tag. Then after vir

[PATCH 4.9 185/218] virtio_console: eliminate anonymous module_init & module_exit

2022-04-18 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit fefb8a2a941338d871e2d83fbd65fbfa068857bd ] Eliminate anonymous module_init() and module_exit(), which can lead to confusion or ambiguity when reading System.map, crashes/oops/bugs, or an initcall_debug log. Give each of these init and exit functions unique d

[PATCH 4.14 233/284] virtio_console: eliminate anonymous module_init & module_exit

2022-04-18 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit fefb8a2a941338d871e2d83fbd65fbfa068857bd ] Eliminate anonymous module_init() and module_exit(), which can lead to confusion or ambiguity when reading System.map, crashes/oops/bugs, or an initcall_debug log. Give each of these init and exit functions unique d

Re: use block_device based APIs in block layer consumers v3

2022-04-18 Thread Jens Axboe
On Fri, 15 Apr 2022 06:52:31 +0200, Christoph Hellwig wrote: > this series cleanups up the block layer API so that APIs consumed > by file systems are (almost) only struct block_devic based, so that > file systems don't have to poke into block layer internals like the > request_queue. > > I also f

[PATCH v2 4/4] virtio-crypto: enable retry for virtio-crypto-dev

2022-04-18 Thread zhenwei pi
From: lei he Enable retry for virtio-crypto-dev, so that crypto-engine can process cipher-requests parallelly. Signed-off-by: lei he --- drivers/crypto/virtio/virtio_crypto_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/virtio/virtio_crypto_core.c

[PATCH v2 3/4] virtio-crypto: adjust dst_len at ops callback

2022-04-18 Thread zhenwei pi
From: lei he For some akcipher operations(eg, decryption of pkcs1pad(rsa)), the length of returned result maybe less than akcipher_req->dst_len, we need to recalculate the actual dst_len through the virt-queue protocol. Signed-off-by: lei he Signed-off-by: zhenwei pi --- drivers/crypto/virtio

[PATCH v2 2/4] virtio-crypto: move helpers into virtio_crypto_common.c

2022-04-18 Thread zhenwei pi
Move virtcrypto_clear_request and virtcrypto_dataq_callback into virtio_crypto_common.c to make code clear. Then the xx_core.c supports: - probe/remove/irq affinity seting for a virtio device - basic virtio related operations xx_common.c supports: - common helpers/functions for algos Signed

[PATCH v2 1/4] virtio-crypto: wait ctrl queue instead of busy polling

2022-04-18 Thread zhenwei pi
Originally, after submitting request into virtio crypto control queue, the guest side polls the result from the virt queue. This allows all of the requests share a single request buffer in struct virtio_crypto(ctrl&input&ctrl_status). CPU0 CPU1 ... CPUx CPUy |

[PATCH v2 0/4] virtio-crypto: Improve performance

2022-04-18 Thread zhenwei pi
v1 -> v2: - Use kfree instead of kfree_sensitive for insensitive buffer. - Several coding style fix. - Use memory from current node, instead of memory close to device - Add more message in commit, also explain why removing per-device request buffer. - Add necessary comment in code to explai

Re: [PATCH v9 31/32] virtio_net: support rx/tx queue resize

2022-04-18 Thread Xuan Zhuo
On Mon, 18 Apr 2022 15:49:29 +0800, Jason Wang wrote: > On Mon, Apr 18, 2022 at 11:24 AM Xuan Zhuo wrote: > > > > On Wed, 13 Apr 2022 16:00:18 +0800, Jason Wang wrote: > > > > > > 在 2022/4/6 上午11:43, Xuan Zhuo 写道: > > > > This patch implements the resize function of the rx, tx queues. > > > > Ba

Re: [PATCH v9 31/32] virtio_net: support rx/tx queue resize

2022-04-18 Thread Jason Wang
在 2022/4/15 17:17, Xuan Zhuo 写道: On Fri, 15 Apr 2022 13:53:54 +0800, Jason Wang wrote: On Fri, Apr 15, 2022 at 10:23 AM Xuan Zhuo wrote: On Thu, 14 Apr 2022 17:30:02 +0800, Jason Wang wrote: On Wed, Apr 13, 2022 at 4:47 PM Xuan Zhuo wrote: On Wed, 13 Apr 2022 16:00:18 +0800, Jason Wang

Re: [PATCH v9 31/32] virtio_net: support rx/tx queue resize

2022-04-18 Thread Jason Wang
On Mon, Apr 18, 2022 at 11:24 AM Xuan Zhuo wrote: > > On Wed, 13 Apr 2022 16:00:18 +0800, Jason Wang wrote: > > > > 在 2022/4/6 上午11:43, Xuan Zhuo 写道: > > > This patch implements the resize function of the rx, tx queues. > > > Based on this function, it is possible to modify the ring num of the >