be2net: Fix a bug in Rx buffer posting
authorAjit Khaparde <ajit.khaparde@emulex.com>
Wed, 8 Apr 2015 21:59:48 +0000 (16:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2015 02:44:27 +0000 (22:44 -0400)
commit69304cc986bdcd7a09df179aeda3736f7e1544a5
treeb1e177503812f971c0ea723ac40a3787e5e73199
parent5eeb2922152042b78eccfb6cf70458019296654f
be2net: Fix a bug in Rx buffer posting

The numPosted field in the ERX Doorbell register is 8-bits wide.
So the max buffers that we can post at a time is 255 and not 256
which we are doing currently.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c