Thread (57 messages) 57 messages, 10 authors, 2010-01-16

Re: [PATCH] sky2: safer transmit ring cleaning (v4)

From: Michael Breuer <hidden>
Date: 2010-01-14 15:43:37

On 1/14/2010 8:19 AM, Mike McCormack wrote:
quoted hunk ↗ jump to hunk
Here's what was sitting in my tree...
...
  err_out:
@@ -1596,6 +1598,8 @@ static inline int tx_inuse(const struct sky2_port *sky2)
  /* Number of list elements available for next tx */
  static inline int tx_avail(const struct sky2_port *sky2)
  {
+	if (unlikely(!sky2->tx_ring))
+		return 0;
  	return sky2->tx_pending - tx_inuse(sky2);
  }
   
This hunk (patch) conflicts with the v4 patch Stephen sent out last 
night. He added an smp_mb in front of the return. I'm going to give this 
a go with the smb_mb before the unlikely test.

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