diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2015-02-06 16:18:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-08 09:50:59 +0300 |
commit | f986afcbe05f507e4520cf0e92bdb56637a3e6c1 (patch) | |
tree | 4e4c2b111445ebe8c9c1c0c9e455e51bd5c950a2 /drivers/net/wan/wanxlfw.inc_shipped | |
parent | 21252377bb2b9f038b4c9d829f69cafca4a4c1c7 (diff) | |
download | linux-f986afcbe05f507e4520cf0e92bdb56637a3e6c1.tar.xz |
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>
Diffstat (limited to 'drivers/net/wan/wanxlfw.inc_shipped')
0 files changed, 0 insertions, 0 deletions