be2net: avoid unncessary swapping of fields in eth_tx_wrb
authorSathya Perla <sathya.perla@emulex.com>
Fri, 6 Feb 2015 13:18:43 +0000 (08:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:50:59 +0000 (22:50 -0800)
commitf986afcbe05f507e4520cf0e92bdb56637a3e6c1
tree4e4c2b111445ebe8c9c1c0c9e455e51bd5c950a2
parent21252377bb2b9f038b4c9d829f69cafca4a4c1c7
be2net: avoid unncessary swapping of fields in eth_tx_wrb

The 32-bit fields of a tx-wrb are little endian. The driver is currently
using be_dws_le_to_cpu() routine to swap (cpu to le) all the fields of
a tx-wrb. So, the rsvd field is also unnecessarily swapped.

This patch fixes this by individually swapping the required fields.
Also, the type of the fields in eth_tx_wrb{} is now changed to __le32
from u32 to avoid sparse warnings.

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