Thread (7 messages) 7 messages, 4 authors, 2018-03-16

Re: [PATCH] hv_netvsc: Make sure out channel is fully opened on send

flat view

From: Dan Carpenter <hidden>
Date: 2018-03-14 08:27:01
Also in: lkml

On Tue, Mar 13, 2018 at 08:06:50PM +0100, Mohammed Gamal wrote:
quoted hunk ↗ jump to hunk
@@ -791,6 +791,7 @@ static inline int netvsc_send_pkt(
 				       VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED);
 	}
 
+	ring_avail = hv_ringbuf_avail_percent(&out_channel->outbound);
 	if (ret == 0) {
 		atomic_inc_return(&nvchan->queue_sends);
 
Could you move the assignment inside the "ret == 0" path closer to where
it's used?

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help