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

Commit da6971d8 authored by Ananda Raju's avatar Ananda Raju Committed by Jeff Garzik
Browse files

[PATCH] S2io: Multi buffer mode support



Hi,
This patch  provides dynamic two buffer-mode and 3 buffer-mode options.
Previously 2 buffer-mode was compilation option. Now with this patch applied
one can load driver in 2 buffer-mode with module-load parameter

ie.
#insmod s2io.ko rx_ring_mode=2

This patch also provides 3 buffer-mode which provides header separation
functionality. In 3 buffer-mode skb->data will have L2/L3/L4 headers and
"skb_shinfo(skb)->frag_list->data" will have have L4 payload.
one can load driver in 3 buffer-mode with same above module-load parameter

ie.
#insmod s2io.ko rx_ring_mode=3

Please review the patch.

Signed-off-by: default avatarAnanda Raju <ananda.raju@neterion.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 29b09fcc
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -2258,17 +2258,6 @@ config S2IO_NAPI


	  If in doubt, say N.
	  If in doubt, say N.


config 2BUFF_MODE
	bool "Use 2 Buffer Mode on Rx side."
	depends on S2IO
	---help---
	On enabling the 2 buffer mode, the received frame will be
	split into 2 parts before being DMA'ed to the hosts memory.
	The parts are the ethernet header and ethernet payload. 
	This is useful on systems where DMA'ing to to unaligned 
	physical memory loactions comes with a heavy price.
	If not sure please say N.

endmenu
endmenu


if !UML
if !UML