]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: set dirty index out of the loop
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Mon, 29 Feb 2016 13:27:37 +0000 (14:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:21:32 +0000 (14:21 -0500)
commitc5970d25289ac8c6b084ffdcf79a7bb550336c80
treec1959840e797960a42b1cf4e00f42ec0842a5a7b
parent7edb9b2bbc078df4814b07f9e883e6638ecd91ff
stmmac: set dirty index out of the loop

The dirty index can be updated out of the loop where all the
tx resources are claimed. This will help on performances too.
Also a useless debug printk has been removed from the main loop.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c