]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix payload_len value for GET_MAC_LIST cmd req
authorSathya Perla <sathya.perla@emulex.com>
Wed, 8 May 2013 02:05:48 +0000 (02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2013 18:59:48 +0000 (11:59 -0700)
commit8c03ebd8aefd18a0067b7ef2cf1dd32f5cca20c9
tree23ec4b9230f4a804c2159ab66e1e3f5ff1852953
parent515454c4800fa268b06babcb54bd4d0c39e68187
be2net: fix payload_len value for GET_MAC_LIST cmd req

The buffer size for a FW cmd request must be big enough to fit the response,
else the cmd fails. For GET_MAC_LIST cmd, though the memory allocated for
the cmd is big enough to fit the response, the payload_len value in the
WRB hdr is being set to the request length only.
Fix this for GET_MAC_LIST cmd.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c