[dpdk-dev] [PATCH] net/virtio: fix link update in speed feature case

Maxime Coquelin maxime.coquelin at redhat.com
Fri Oct 29 12:33:43 CEST 2021



On 10/22/21 15:17, Andrew Rybchenko wrote:
> From: Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
> 
> 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 at dpdk.org
> 
> Signed-off-by: Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> ---
>   drivers/net/virtio/virtio.h        |  5 ++++
>   drivers/net/virtio/virtio_ethdev.c | 47 +++++++++++++++++++++---------
>   2 files changed, 39 insertions(+), 13 deletions(-)
> 

Applied to dpdk-next-virtio/main with suggested change.

Thanks,
Maxime



More information about the dev mailing list