Skip to content

Commit

Permalink
[PATCH] S2io: Multi buffer mode support
Browse files Browse the repository at this point in the history
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: Ananda Raju <ananda.raju@neterion.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Ananda Raju authored and Jeff Garzik committed Nov 5, 2005
1 parent 29b09fc commit da6971d
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 409 deletions.
11 changes: 0 additions & 11 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2258,17 +2258,6 @@ config S2IO_NAPI

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

if !UML
Expand Down
Loading

0 comments on commit da6971d

Please sign in to comment.