Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e592a9b0 authored by Mark Einon's avatar Mark Einon Committed by Greg Kroah-Hartman
Browse files

staging: et131x: Fix issues when USE_FBR0 is not defined



* Following on from making rx_ring.fbr use a common structure - reversed
the fbr[] array indicies so that index 1 = FBR0 and index 0 = FBR1,
which allows USE_FBR0 define to work.

* Also fixed up minor issues where indexes into the array were out of
bounds in some places.

* Removed rx_ring.fbr common stuct TODO item from README

Signed-off-by: default avatarMark Einon <mark.einon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6abafc16
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ Note, the powermanagement options were removed from the vendor provided
driver as they did not build properly at the time.

TODO:
	- rx_ring.fbr{0, 1} can probably share a common structure
	- Use of kmem_cache seems a bit unusual
	- Use dma_alloc_... in place of pci_alloc_...
	- It's too late stopping the tx queue when there is no room for the current packet. The condition should be detected for the next packet.
+158 −146

File changed.

Preview size limit exceeded, changes collapsed.