]> git.baikalelectronics.ru Git - kernel.git/commit
bgmac: simplify tx ring index handling
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Apr 2015 10:07:54 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:10 +0000 (14:57 -0400)
commit6f7f12f62b1c11ddf4f0ee9bea1fcb834470a984
treee35af7b479d02c713b303d24bbf60442e0f52bc8
parentc066fa6a43bf1d957974b1d9411d701d0ff5a33c
bgmac: simplify tx ring index handling

Keep incrementing ring->start and ring->end instead of pointing it to
the actual ring slot entry. This simplifies the calculation of the
number of free slots.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h