]> Git Repo - linux.git/commit
bgmac: simplify tx ring index handling
authorFelix Fietkau <[email protected]>
Tue, 14 Apr 2015 10:07:54 +0000 (12:07 +0200)
committerDavid S. Miller <[email protected]>
Tue, 14 Apr 2015 18:57:10 +0000 (14:57 -0400)
commitb38c83dd08665a93e439c4ffd9eef31bc098a6ea
treee35af7b479d02c713b303d24bbf60442e0f52bc8
parente07678341b612bbf98c2bf205c3f26f3ef5f8e93
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 <[email protected]>
Acked-by: Rafał Miłecki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h
This page took 0.051843 seconds and 4 git commands to generate.