Re: [PATCH] ucc_geth: Rework the TX logic.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Li Yang
Date: Friday, March 27, 2009 - 2:45 am

On Fri, Mar 27, 2009 at 1:44 AM, Joakim Tjernlund
<Joakim.Tjernlund@transmode.se> wrote:


When the driver was reviewed for upstream merge, I was told to remove
this kind of thing in favor of direct struct qe_bd access.  So do we
really have a guideline on this?  Or it's just a matter of personal
preference?


Why does this make more sense?  The BD with a NULL buffer means the
ring is full?  It's not the normal case.


Now I see why you depend on the buffer to judge if the BD ring is
full.  If you want to do this, make sure it's well documented in code,
or others will be confused.  And as Anton already commented, in/out
access is slow.  I think the original way can be fixed if you think
it's broken, and will have better performance.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Thu Mar 26, 10:44 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Anton Vorontsov, (Thu Mar 26, 11:03 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Thu Mar 26, 11:26 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Li Yang, (Fri Mar 27, 2:45 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Fri Mar 27, 3:23 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Li Yang, (Fri Mar 27, 3:39 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Fri Mar 27, 4:39 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Scott Wood, (Fri Mar 27, 6:26 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Mon Mar 30, 9:38 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Scott Wood, (Mon Mar 30, 10:22 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Mon Mar 30, 10:34 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Scott Wood, (Mon Mar 30, 10:45 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Mon Mar 30, 11:42 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Scott Wood, (Mon Mar 30, 12:32 pm)
Re: [PATCH] ucc_geth: Rework the TX logic., Li Yang, (Tue Mar 31, 1:16 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Tue Mar 31, 2:07 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Li Yang, (Tue Mar 31, 3:58 am)
Re: [PATCH] ucc_geth: Rework the TX logic., Scott Wood, (Tue Mar 31, 7:37 am)