]> git.droids-corp.org - dpdk.git/commit
net/virtio: fix link update in speed feature
authorIvan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Fri, 22 Oct 2021 13:17:54 +0000 (16:17 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:30 +0000 (12:32 +0200)
commit3c3c54cfa6b38b48e9b817653fde32631aec024d
treeae5822879402d92433b3842a34103df8d485caac
parentf0b00d983e384137eb3388f9b92b1406de832d69
net/virtio: fix link update in speed feature

Link update callback reports speed/duplex based on data
filled on device initialization. This is wrong in case of
VIRTIO_NET_F_SPEED_DUPLEX is negotiated since link could
be down at this time. Fix this function to actually
update the HW data in this case with respect to the fact
that specifying speed via devarg is a highest priority.

Fixes: 1357b4b36246 ("net/virtio: support Virtio link speed feature")
Cc: stable@dpdk.org
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.h
drivers/net/virtio/virtio_ethdev.c