aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[email protected]>2015-11-27 10:39:55 +0000
committerDavid S. Miller <[email protected]>2015-12-01 19:58:07 +0000
commit27a70af3f4cf633a1b86c0ac7b426e2fe16ad2e5 (patch)
treee4dc499878da293844034dc90d2894189ae2bda6 /lib/netdev-notifier-error-inject.c
parentunix: use wq_has_sleeper in unix_dgram_recvmsg (diff)
downloadkernel-27a70af3f4cf633a1b86c0ac7b426e2fe16ad2e5.tar.gz
kernel-27a70af3f4cf633a1b86c0ac7b426e2fe16ad2e5.zip
hv_netvsc: rework link status change handling
There are several issues in hv_netvsc driver with regards to link status change handling: - RNDIS_STATUS_NETWORK_CHANGE results in calling userspace helper doing '/etc/init.d/network restart' and this is inappropriate and broken for many reasons. - link_watch infrastructure only sends one notification per second and in case of e.g. paired disconnect/connect events we get only one notification with last status. This makes it impossible to handle such situations in userspace. Redo link status changes handling in the following way: - Create a list of reconfig events in network device context. - On a reconfig event add it to the list of events and schedule netvsc_link_change(). - In netvsc_link_change() ensure 2-second delay between link status changes. - Handle RNDIS_STATUS_NETWORK_CHANGE as a paired disconnect/connect event. Signed-off-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions