With LSC enabled, the link status and speed seen by the application
are not updated after the host reports a link change.

Patch 1 makes sure the cached link always has the current speed.
Patch 2 updates the cached link from the host indication.

Tested on Azure with testpmd, by injecting media disconnect, media
connect and link speed change indications. Without the patches, the
link read in the LSC callback stays up at the old speed. With them,
it goes down, up, then shows the new speed.

Shrey Khandelwal (2):
  net/netvsc: fix link speed not updated
  net/netvsc: fix link status not updated on host indication

 .mailmap                       |  1 +
 drivers/net/netvsc/hn_ethdev.c |  8 ++-
 drivers/net/netvsc/hn_rndis.c  | 90 ++++++++++++++++++++++++++++++++--
 drivers/net/netvsc/hn_rndis.h  |  3 +-
 drivers/net/netvsc/hn_rxtx.c   |  2 +-
 drivers/net/netvsc/hn_var.h    |  4 ++
 6 files changed, 97 insertions(+), 11 deletions(-)

-- 
2.55.0

Reply via email to