commit | 714239ac630a85919839f200d4499b7f811c7003 | [log] [tgz] |
---|---|---|
author | Claudiu Manoil <claudiu.manoil@nxp.com> | Tue Mar 10 14:51:23 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Mar 10 15:48:54 2020 -0700 |
tree | 89de5514a4db08aa3a1baf2e1954faa959374a85 | |
parent | a784c92ee272ed075b2134736d32321535fc778a [diff] |
enetc: Clean up Rx BD iteration Improve maintainability of the code iterating the Rx buffer descriptors to prepare it to support iterating extended Rx BD descriptors as well. Don't increment by one the h/w descriptor pointers explicitly, provide an iterator that takes care of the h/w details. Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>