be2net: fix mccq create for big endian architectures
authorAjit Khaparde <ajitk@serverengines.com>
Thu, 11 Mar 2010 01:35:59 +0000 (01:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2010 22:46:59 +0000 (15:46 -0700)
commitd4a2ac3e802d9f598453a7854d0fdf67371ac2dd
tree63fba3719134717b53bd1ef1362bda13e7e7e876
parentd4fdcd923daf9d03d2e1b956d66f05c3f2ca4c43
be2net: fix mccq create for big endian architectures

The request to create an mccq was being dispatched without
doing a byte swap of num_pages. This byte swap is necessary
for Big Endian systems like PPC. Not having this fix leads
mccq create to fail on BE ASICs running newer version of
firmware, thereby causing driver initialization failure.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c