]> git.droids-corp.org - dpdk.git/commit
net/netvsc: fix vmbus device reference in multi-process
authorLong Li <longli@microsoft.com>
Wed, 29 Jun 2022 23:29:44 +0000 (16:29 -0700)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 30 Jun 2022 12:44:58 +0000 (14:44 +0200)
commit7b1a614dcbe2017f1984be28a01efabcd7fed8b8
tree11a5d37ef9d574bf349b3816bc6ca6b8968c8d74
parent9fa23029a7b76ebedd793c73b70de5bb2687e1f8
net/netvsc: fix vmbus device reference in multi-process

The vmbus device is allocated via "calloc" before the EAL memory is
initialized. The secondary process can't reference the vmbus device as
it is not mapped correctly in the shared memory region.

Replace all references to the vmbus device (and its contents) with the
pointers/contents set by the primary process.

Fixes: 4e9c73e96e ("net/netvsc: add Hyper-V network device")
Cc: stable@dpdk.org
Signed-off-by: Long Li <longli@microsoft.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/bus/vmbus/private.h
drivers/bus/vmbus/vmbus_channel.c
drivers/net/netvsc/hn_ethdev.c
drivers/net/netvsc/hn_nvs.c
drivers/net/netvsc/hn_rxtx.c
drivers/net/netvsc/hn_var.h