Skip to content

Commit

Permalink
net/vmxnet3: fix Rx queue interrupts on FreeBSD
Browse files Browse the repository at this point in the history
Interrupts disabled 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.

Fixes: 40d5676 ("net/vmxnet3: fix initialization on FreeBSD")
Cc: stable@dpdk.org

Signed-off-by: Tom Jones <thj@freebsd.org>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
  • Loading branch information
Tom Jones authored and ferruhy committed Mar 21, 2024
1 parent 898716d commit 81140fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/vmxnet3/vmxnet3_ethdev.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 81140fd

Please sign in to comment.