net: ethernet: ti: cpsw: optimize end of poll cycle
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 29 Nov 2016 15:00:50 +0000 (17:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 19:37:14 +0000 (14:37 -0500)
commit342934a55898f830c38f066e6776e8996589fef3
tree25aa18ade45f4074b4deea2009f81f72e7bfe248
parent83fcad0c986d9dbbb71e8c433d6c40dc6cb810ad
net: ethernet: ti: cpsw: optimize end of poll cycle

Check budget fullness only after it's updated and update
channel mask only once to keep budget balance between channels.
It's also needed for farther changes.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c