Re: [dpdk-dev] [PATCH] net/virtio: fix Virtio-PCI ops assignment

2021-02-01 Thread Maxime Coquelin
On 2/1/21 5:32 PM, David Marchand wrote: > On Mon, Feb 1, 2021 at 4:16 PM Maxime Coquelin > wrote: >> >> VIRTIO_OPS() macro relies on the port ID stored in the >> virtio_hw struct. Issue is that it is used before being >> assigned at init time. It results in all devices setting >> ops on port I

Re: [dpdk-dev] [PATCH] net/virtio: fix Virtio-PCI ops assignment

2021-02-01 Thread David Marchand
On Mon, Feb 1, 2021 at 4:16 PM Maxime Coquelin wrote: > > VIRTIO_OPS() macro relies on the port ID stored in the > virtio_hw struct. Issue is that it is used before being > assigned at init time. It results in all devices setting > ops on port ID 0, causing crash later when calling ops > for port