Skip to contentSkip to conversation

staging: hv: Removed unneeded call to netif_stop_queue() in hv_netvsc

PATCH In review Hank Janssen 2 participants 4 messages Jan 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: hv: Removed unneeded call to netif_stop_queue() in hv_netvsc

From: Hank Janssen <[email protected]>

Removed the call to netif_stop_queue() in netvsc_probe() as the queue is not initialized at that point and further call to it after queue initialization is really not necessary.

This change was prompted after an upstream change went into 2.6.37 (netif_tx_stop_queue) that now checks if netif_stop_queue is called before register with netdev is done.

This will eliminate the warning message to the log when hv_netvsc driver starts up.

---
 drivers/staging/hv/netvsc_drv.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/staging/hv/netvsc_drv.c +0 -1
index 0147b40..54706a1 100644
@@ -358,7 +358,6 @@ static int netvsc_probe(struct device *device)
 
 	/* Set initial state */
 	netif_carrier_off(net);
-	netif_stop_queue(net);
 
 	net_device_ctx = netdev_priv(net);
 	net_device_ctx->device_ctx = device_ctx;
Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 10 lines · Hank Janssen

From: Hank Janssen <[email protected]>

Removed the call to netif_stop_queue() in netvsc_probe() as the queue is not initialized at that point and further call to it after queue initialization is really not necessary.

This change was prompted after an upstream change went into 2.6.37 (netif_tx_stop_queue) that now checks if netif_stop_queue is called before register with netdev is done.

Quoted 6 lines

This will eliminate the warning message to the log when hv_netvsc driver starts up.

What kernel is this needed for, .37? .38? older than .37?

thanks,

greg k-h

#2 lore raw
Quoted 11 lines

-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Friday, January 07, 2011 9:32 AM

What kernel is this needed for, .37? .38? older than .37?

thanks,

greg k-h

This is needed for kernels 2.6.37 and newer.

Btw, I have not seen KVP patches that where submitted in linux next yet.
I have not seen any other requests for changes to them, is there anything else needed for acceptance?

Thanks,

Hank.

#3 lore raw
Quoted 6 lines · Hank Janssen
Quoted 6 lines

-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Friday, January 07, 2011 9:32 AM

Quoted 7 lines
Quoted 5 lines

What kernel is this needed for, .37? .38? older than .37?

thanks,

greg k-h

This is needed for kernels 2.6.37 and newer.

Ok.

Quoted 2 lines

Btw, I have not seen KVP patches that where submitted in linux next yet.
I have not seen any other requests for changes to them, is there anything else needed for acceptance?

No, they are in my "to-apply" queue, they missed the deadline for .38, sorry, due to the holiday break. I'll queue them up when .38-rc1 is out.

thanks,

greg k-h