net/vmxnet3: Don't enable rx queue interrupts on FreeBSD
Subsystems (2)
PATCH 1/1 net/vmxnet3: Don't enable rx queue interrupts on FreeBSD
Commit 29a1c9107bb disabled interrupts on FreeBSD for the vmxnet3 driver as they are not supported. Rx queue interrupts were missed by this change, don't attempt to enable them on FreeBSD.
Without this change applications enabling interrupts encounter an immediate abort on FreeBSD.
--- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/vmxnet3/vmxnet3_ethdev.c +2 -0
@@ -1938,9 +1938,11 @@ vmxnet3_dev_rx_queue_intr_enable(struct rte_eth_dev *dev, uint16_t queue_id) {struct vmxnet3_hw *hw = dev->data->dev_private; +#ifndef RTE_EXEC_ENV_FREEBSD vmxnet3_enable_intr (hw,rte_intr_vec_list_index_get (dev->intr_handle, queue_id)); +#endif return 0 ; }
Signature · 1 line
2.43.0
PATCH 1/1 net/vmxnet3: Don't enable rx queue interrupts on FreeBSD
Commit 29a1c9107bb disabled interrupts on FreeBSD for the vmxnet3 driver as they are not supported. Rx queue interrupts were missed by this change, don't attempt to enable them on FreeBSD.
Without this change applications enabling interrupts encounter an immediate abort on FreeBSD.
--- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/vmxnet3/vmxnet3_ethdev.c +2 -0
@@ -1936,11 +1936,13 @@ vmxnet3_interrupt_handler(void *param)static int vmxnet3_dev_rx_queue_intr_enable (struct rte_eth_dev *dev,uint16_t queue_id) { +#ifndef RTE_EXEC_ENV_FREEBSD struct vmxnet3_hw *hw = dev->data->dev_private;vmxnet3_enable_intr (hw,rte_intr_vec_list_index_get (dev->intr_handle, queue_id)); +#endif return 0 ; }
Signature · 1 line
2.43.0
Hello Tom,
Quoted 7 lines · Tom Jones
Commit
29a1c9107bbdisabled interrupts on FreeBSD for the vmxnet3 driver as they are not supported. Rx queue interrupts were missed by this change, don't attempt to enable them on FreeBSD.Without this change applications enabling interrupts encounter an immediate abort on FreeBSD.
Thanks for the patch, you will probably want this fix backported in LTS versions.
If so, please add a Fixes: tag and Cc: [email protected]. I guess here, it is:
Reading again the commitlog, I wonder if we should error out in vmxnet3_configure_msix() if rx (and/or lsc) interrupts are requested for FreeBSD.
Did you consider this approach?
Signature · 1 line
David Marchand
Quoted 8 lines · David Marchand
Hello Tom,
Quoted 5 lines · Tom Jones
Commit
29a1c9107bbdisabled interrupts on FreeBSD for the vmxnet3 driver as they are not supported. Rx queue interrupts were missed by this change, don't attempt to enable them on FreeBSD.
Quoted 8 lines
Quoted 2 lines
Without this change applications enabling interrupts encounter an immediate abort on FreeBSD.
Thanks for the patch, you will probably want this fix backported in LTS versions.
If so, please add a Fixes: tag and Cc: [email protected]. I guess here, it is:Fixes 40d5676ff1ea ("net/vmxnet3: fix initialization on FreeBSD")
Thanks! updated
Quoted 6 lines
Reading again the commitlog, I wonder if we should error out in
vmxnet3_configure_msix()if rx (and/or lsc) interrupts are requested for FreeBSD.
Did you consider this approach?
I haven't dug much futher into this. I also changed the application side (vpp) to not request interrupts. I think there are probably some other FreeBSD specific cases to explore in vmxnet3, but I don't have a great environment for testing yet.
- Tom
PATCH 1/1 net/vmxnet3: Don't enable rx queue interrupts on FreeBSD
In reply to Tom JonesCommit 29a1c9107bb disabled interrupts on FreeBSD for the vmxnet3 driver as they are not supported. Rx queue interrupts were missed by this change, don't attempt to enable them on FreeBSD.
Without this change applications enabling interrupts encounter an immediate abort on FreeBSD.
--- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/vmxnet3/vmxnet3_ethdev.c +2 -0
@@ -1936,11 +1936,13 @@ vmxnet3_interrupt_handler(void *param)static int vmxnet3_dev_rx_queue_intr_enable (struct rte_eth_dev *dev,uint16_t queue_id) { +#ifndef RTE_EXEC_ENV_FREEBSD struct vmxnet3_hw *hw = dev->data->dev_private;vmxnet3_enable_intr (hw,rte_intr_vec_list_index_get (dev->intr_handle, queue_id)); +#endif return 0 ; }
Signature · 1 line
2.43.0
Quoted 4 lines · Tom Jones
Commit
29a1c9107bbdisabled interrupts on FreeBSD for the vmxnet3 driver as they are not supported. Rx queue interrupts were missed by this change, don't attempt to enable them on FreeBSD.
Quoted 8 lines
Without this change applications enabling interrupts encounter an immediate abort on FreeBSD.
Fixes 40d5676ff1ea ("net/vmxnet3: fix initialization on FreeBSD")Signed-off-by Tom Jones <[email protected]>
Applied to dpdk-next-net/main, thanks.
(
- Commit log updated slightly, removed "Commit 29a1c9107bb" references
- updated .mailmap
)