net/virtio: report Tx descriptor limits in dev info
authorIvan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Wed, 15 Sep 2021 12:23:27 +0000 (15:23 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 28 Sep 2021 19:23:00 +0000 (21:23 +0200)
commit492a239cbfe35573d25341f18fb8169f7c07f25b
tree716b63e4f139f4eacfa2b72cfb156f1a07d50d60
parent5ac9d766b535189301df3452368580ffa0d6ff97
net/virtio: report Tx descriptor limits in dev info

Report max/min/align Tx descriptors limits in device info get callback.
Before calling the callback, rte_eth_dev_info_get() provides
default values of nb_min as zero and nb_max as UINT16_MAX that are
not correct for the driver, so one can't rely on them.

Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c