Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/freescale
Troy Kisky 93c595f7b8 net: fec: fix fec_enet_get_free_txdesc_num
When first initialized, cur_tx points to the 1st
entry in the queue, and dirty_tx points to the last.
At this point, fec_enet_get_free_txdesc_num will
return tx_ring_size -2. If tx_ring_size -2 entries
are now queued, then fec_enet_get_free_txdesc_num
should return 0, but it returns tx_ring_size instead.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-02-11 06:14:51 -05:00
..
2015-10-05 03:16:39 -07:00
2016-01-07 14:31:26 -05:00
2015-12-27 20:51:39 -05:00
2016-01-25 10:51:52 -08:00