]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix bug in rx page posting
authorSathya Perla <sathyap@serverengines.com>
Fri, 22 Jan 2010 06:52:08 +0000 (22:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jan 2010 06:52:08 +0000 (22:52 -0800)
commit7775f3c626c1c2192e0e856c57f1813378704c7e
treedd7ce9164a504badabb7bfbe56c296ad1529d6fc
parent5551060d143342e21305b3643e41151d7152e289
be2net: fix bug in rx page posting

Pages are posted to the rxq in such a way that more than one frag
can share the page. The last frag that uses the page unmaps the
page.  In the case when a page is not fully used (due to lack of space in rxq)
the last frag that uses the page is not being set as a "last_page_user";
instead, the next frag in the rxq is incorrectly being set.

The fix has also been tested on ppc64 with 64k pages...

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c