Re: [PATCH hyperv-fixes] hv_netvsc: Fix unwanted wakeup after tx_disable

2019-03-28 Thread Stephen Hemminger
On Thu, 28 Mar 2019 17:48:45 + Haiyang Zhang wrote: > +static inline void netvsc_tx_enable(struct netvsc_device *nvscdev, > + struct net_device *ndev) > +{ > + nvscdev->tx_disable = false; > + mb(); /* ensure queue wake up mechanism is on */ > + > +

[PATCH hyperv-fixes] hv_netvsc: Fix unwanted wakeup after tx_disable

2019-03-28 Thread Haiyang Zhang
From: Haiyang Zhang After queue stopped, the wakeup mechanism may wake it up again when ring buffer usage is lower than a threshold. This may cause send path panic on NULL pointer when we stopped all tx queues in netvsc_detach and start removing the netvsc device. This patch fix it by adding a t