Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-20224

Hyper-V nic flaps for 1 minute when reconnecting

    • None
    • Low
    • rhel-sst-virtualization-cloud
    • ssg_virtualization
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Running a guest VM with Centos Stream 9, on Hyper-V host running Windows 10, I notice the "Internet Connecting Sharing (ICS)" service happens to restart from time to time. This causes a bunch of disconnections/reconnections on the Hyper-V nics, that happen *within the same second*.

      But Linux seems to process these reconnections sequentially, adding some delay between each, causing the network to flap, working a couple of seconds, then breaking for a couple of seconds, causing the supposedly sub second outage to be visible during close to a minute.

      Please provide the package NVR for which bug is seen:

      kernel-core-5.14.0-388.el9.x86_64
      also seen on other distros like Ubuntu.

      How reproducible:

      all the time on my laptop

      Steps to reproduce

      1. boot a VM with Linux running on Hyper-V
      2. in Windows, run the "Services" app, right click the "Internet Connecting Sharing (ICS)" service, choose restart...
      3.  

      Expected results

      either no outage or network back within 5 seconds

      Actual results

      network down, then up, then down, then up, 6 times, very frustrating, as the VM is practically unusable.

      hv_netvsc and network manager logs:

      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream NetworkManager[1013]: <trace> [1703407173.1367] platform-linux: event-notification: RTM_NEWLINK, flags 0, seq 0: 2: enx00155d343101 <UP;broadcast,multicast,up> mtu 1500 arp 1 ethernet? not-init addrgenmode none>déc. 24 09:39:33 stream NetworkManager[1013]: <debug> [1703407173.1368] platform: (enx00155d343101) signal: link changed: 2: enx00155d343101 <UP;broadcast,multicast,up> mtu 1500 arp 1 ethernet? init addrgenmode none addr 00:15:5D:34:3>déc. 24 09:39:33 stream NetworkManager[1013]: <trace> [1703407173.1368] l3cfg[17837add519934e3,ifindex=2]: emit signal (platform-change, obj-type=link, change=changed, obj=2: enx00155d343101 <UP;broadcast,multicast,up> mtu 1500 arp 1 >déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream NetworkManager[1013]: <debug> [1703407173.1368] device[cf06ffc422da9956] (enx00155d343101): queued link change for ifindex 2
      déc. 24 09:39:33 stream NetworkManager[1013]: <debug> [1703407173.1371] device[cf06ffc422da9956] (enx00155d343101): carrier: link disconnected (deferring action for 6000 milliseconds)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000c, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 20, status 0x4001000b, buf len 0, buf offset 0)
      déc. 24 09:39:33 stream kernel: hv_netvsc 9538b269-5961-4c95-aa0b-b2994c468668 enx00155d343101: RNDIS_MSG_INDICATE (len 176, status 0x40020006, buf len 156, buf offset 12)
      déc. 24 09:39:37 stream NetworkManager[1013]: <trace> [1703407177.2456] platform-linux: event-notification: RTM_NEWLINK, flags 0, seq 0: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? >déc. 24 09:39:37 stream NetworkManager[1013]: <debug> [1703407177.2457] platform: (enx00155d343101) signal: link changed: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? init addrgenmod>déc. 24 09:39:37 stream NetworkManager[1013]: <trace> [1703407177.2457] l3cfg[17837add519934e3,ifindex=2]: emit signal (platform-change, obj-type=link, change=changed, obj=2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running>déc. 24 09:39:37 stream NetworkManager[1013]: <debug> [1703407177.2458] device[cf06ffc422da9956] (enx00155d343101): queued link change for ifindex 2
      déc. 24 09:39:37 stream NetworkManager[1013]: <info>  [1703407177.2460] device (enx00155d343101): carrier: link connected
      déc. 24 09:39:37 stream NetworkManager[1013]: <debug> [1703407177.2461] device[cf06ffc422da9956] (enx00155d343101): carrier: link disconnected (canceling deferred action)
      déc. 24 09:39:37 stream NetworkManager[1013]: <trace> [1703407177.2462] ethtool[2]: ETHTOOL_GSET, enx00155d343101: success
      déc. 24 09:39:39 stream NetworkManager[1013]: <trace> [1703407179.2935] platform-linux: event-notification: RTM_NEWLINK, flags 0, seq 0: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? >déc. 24 09:39:39 stream NetworkManager[1013]: <debug> [1703407179.2936] platform: (enx00155d343101) signal: link changed: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? init addrgenmod>déc. 24 09:39:39 stream NetworkManager[1013]: <trace> [1703407179.2936] l3cfg[17837add519934e3,ifindex=2]: emit signal (platform-change, obj-type=link, change=changed, obj=2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running>déc. 24 09:39:39 stream NetworkManager[1013]: <debug> [1703407179.2936] device[cf06ffc422da9956] (enx00155d343101): queued link change for ifindex 2
      déc. 24 09:39:39 stream NetworkManager[1013]: <trace> [1703407179.2936] platform-linux: event-notification: RTM_NEWLINK, flags 0, seq 0: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? >déc. 24 09:39:41 stream NetworkManager[1013]: <trace> [1703407181.3417] platform-linux: event-notification: RTM_NEWLINK, flags 0, seq 0: 2: enx00155d343101 <UP;broadcast,multicast,up> mtu 1500 arp 1 ethernet? not-init addrgenmode none>déc. 24 09:39:41 stream NetworkManager[1013]: <debug> [1703407181.3418] platform: (enx00155d343101) signal: link changed: 2: enx00155d343101 <UP;broadcast,multicast,up> mtu 1500 arp 1 ethernet? init addrgenmode none addr 00:15:5D:34:3>déc. 24 09:39:41 stream NetworkManager[1013]: <trace> [1703407181.3418] l3cfg[17837add519934e3,ifindex=2]: emit signal (platform-change, obj-type=link, change=changed, obj=2: enx00155d343101 <UP;broadcast,multicast,up> mtu 1500 arp 1 >déc. 24 09:39:41 stream NetworkManager[1013]: <debug> [1703407181.3418] device[cf06ffc422da9956] (enx00155d343101): queued link change for ifindex 2
      déc. 24 09:39:41 stream NetworkManager[1013]: <debug> [1703407181.3424] device[cf06ffc422da9956] (enx00155d343101): carrier: link disconnected (deferring action for 6000 milliseconds)
      déc. 24 09:39:45 stream NetworkManager[1013]: <trace> [1703407185.4376] platform-linux: event-notification: RTM_NEWLINK, flags 0, seq 0: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? >déc. 24 09:39:45 stream NetworkManager[1013]: <debug> [1703407185.4377] platform: (enx00155d343101) signal: link changed: 2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running,lowerup> mtu 1500 arp 1 ethernet? init addrgenmod>déc. 24 09:39:45 stream NetworkManager[1013]: <trace> [1703407185.4377] l3cfg[17837add519934e3,ifindex=2]: emit signal (platform-change, obj-type=link, change=changed, obj=2: enx00155d343101 <UP,LOWER_UP;broadcast,multicast,up,running>déc. 24 09:39:45 stream NetworkManager[1013]: <debug> [1703407185.4377] device[cf06ffc422da9956] (enx00155d343101): queued link change for ifindex 2
      déc. 24 09:39:45 stream NetworkManager[1013]: <info>  [1703407185.4380] device (enx00155d343101): carrier: link connected
      déc. 24 09:39:45 stream NetworkManager[1013]: <debug> [1703407185.4381] device[cf06ffc422da9956] (enx00155d343101): carrier: link disconnected (canceling deferred action)
      déc. 24 09:39:45 stream NetworkManager[1013]: <trace> [1703407185.4382] ethtool[2]: ETHTOOL_GSET, enx00155d343101: success
      ...
      déc. 24 09:39:53 stream NetworkManager[1013]: <info>  [1703407193.6298] device (enx00155d343101): carrier: link connected
      ...
      déc. 24 09:40:01 stream NetworkManager[1013]: <info>  [1703407201.8219] device (enx00155d343101): carrier: link connected
      ...
      déc. 24 09:40:10 stream NetworkManager[1013]: <info>  [1703407210.0138] device (enx00155d343101): carrier: link connected
      ...
      déc. 24 09:40:18 stream NetworkManager[1013]: <info>  [1703407218.2059] device (enx00155d343101): carrier: link connected
      

      Windows events for the nics:

      Get-WinEvent -LogName  Microsoft-Windows-Hyper-V-VmSwitch-Operational -MaxEvents 50 -FilterXPath "*[System[Level<5]]"
      
         ProviderName: Microsoft-Windows-Hyper-V-VmSwitch
      
      TimeCreated                      Id LevelDisplayName Message
      -----------                      -- ---------------- -------
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Connected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (Nic Disconnected) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49...
      24/12/2023 09:39:33             220 Information      Status change (IPSEC Disable) sent to Nic 40DBAAF6-D408-452F-BC2E-B76AAF065732--B670C9DF-AB50-49C4-...
      

      As a proof of concept I applied this patch:

      --- a/drivers/net/hyperv/netvsc_drv.c
      +++ b/drivers/net/hyperv/netvsc_drv.c
      @@ -39,7 +39,7 @@
      
       #define RING_SIZE_MIN  64
      
      -#define LINKCHANGE_INT (2 * HZ)
      +#define LINKCHANGE_INT (2 * HZ / 100)
       #define VF_TAKEOVER_INT (HZ / 10)
      
       static unsigned int ring_size __ro_after_init = 128;
      

      with this patch the VM seems to reconnect instantly. NetworkManager logs this only once (which is weird) but it does seem to fix the problem in practice

      déc. 24 10:40:17 stream NetworkManager[1026]: <info>  [1703410817.8263] device (enx00155d343101): carrier: link connected
      

      there is no visible flapping at all.

      Can you review why there is a 2 whole seconds delay for each connection event? Thanks

              vkuznets@redhat.com Vitaly Kuznetsov
              frigault Francois Rigault
              Microsoft Confidential Group
              virt-maint virt-maint
              Xuemin Li Xuemin Li
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: