net/virtio: avoid unneeded link interrupt configuration
authorDavid Marchand <david.marchand@redhat.com>
Tue, 31 Aug 2021 15:54:10 +0000 (17:54 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 14 Sep 2021 11:21:57 +0000 (13:21 +0200)
commit5be2325ecec83ab9dd5e25dde6112aed56f3e4f6
treeb3fef20fae29458300377b15034c6087905b6d2f
parent31136836bc719723def534595cc1ca5ce21299e1
net/virtio: avoid unneeded link interrupt configuration

There is no reason to re-register a interrupt handler for LSC if this
feature was not requested in the first place.
A simple use case is when asking for Rx interrupts without LSC interrupt.

Fixes: 26b683b4f7d0 ("net/virtio: setup Rx queue interrupts")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c