Thread (149 messages) 149 messages, 6 authors, 2021-01-18

Re: [dpdk-dev] [PATCH 20/40] net/virtio: make interrupt handling more generic

From: Maxime Coquelin <hidden>
Date: 2021-01-14 08:43:36


On 12/30/20 4:17 AM, Xia, Chenbo wrote:
Hi Maxime,
quoted
-----Original Message-----
From: Maxime Coquelin <redacted>
Sent: Monday, December 21, 2020 5:14 AM
To: dev@dpdk.org; Xia, Chenbo <redacted>; olivier.matz@6wind.com;
amorenoz@redhat.com; david.marchand@redhat.com
Cc: Maxime Coquelin <redacted>
Subject: [PATCH 20/40] net/virtio: make interrupt handling more generic

This patch aims at isolating MSIX notion into PCI
layer.

Signed-off-by: Maxime Coquelin <redacted>
---
 drivers/net/virtio/virtio.c             |   6 ++
 drivers/net/virtio/virtio.h             |  11 +-
 drivers/net/virtio/virtio_ethdev.c      |   7 +-
 drivers/net/virtio/virtio_pci.c         | 131 ++++++++++++------------
 drivers/net/virtio/virtio_pci.h         |  25 ++---
 drivers/net/virtio/virtio_user_ethdev.c |   4 +-
 6 files changed, 90 insertions(+), 94 deletions(-)
diff --git a/drivers/net/virtio/virtio.c b/drivers/net/virtio/virtio.c
index ba3203e68b..7e1e77797f 100644
--- a/drivers/net/virtio/virtio.c
+++ b/drivers/net/virtio/virtio.c
@@ -63,3 +63,9 @@ virtio_get_status(struct virtio_hw *hw)
 {
 	return VIRTIO_OPS(hw)->get_status(hw);
 }
[snip]
quoted
 static uint16_t
@@ -640,7 +640,7 @@ virtio_user_eth_dev_alloc(struct rte_vdev_device *vdev)
 	 * MSIX is required to enable LSC (see virtio_init_device).
 	 * Here just pretend that we support msix.
 	 */
-	hw->use_msix = 1;
+	hw->intr_lsc = 1;
As virtio-user does not have the notion of msi-x, should we also clean up the code
comments? I mean 'MSIX is required ... that we support msix'.
The comment no more makes sense, I'll just drop it.

Thanks,
Maxime
Thanks!
Chenbo
quoted
 	hw->use_vec_rx = 0;
 	hw->use_vec_tx = 0;
 	hw->use_inorder_rx = 0;
--
2.29.2
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help