be2net: convert dest field in udp-hdr to host-endian
authorVenkat Duvvuru <VenkatKumar.Duvvuru@Emulex.com>
Fri, 10 Jul 2015 09:32:47 +0000 (05:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jul 2015 06:24:29 +0000 (23:24 -0700)
commit1645d99768e00d3148ebded5d8c4ab55cdb19a5c
tree0983bad27fdb3fd202c58fdb556f5b8cf742b692
parent887a65c4ab1511a9afc8a20e5507bec3d074f867
be2net: convert dest field in udp-hdr to host-endian

The "dest" field in the UDP-hdr of a TX skb is in network endian format.
Convert it to host endian before accessing it. The os2bmc patch,
mentioned below introduced this code.

Fixes: 760c295e0e8d ("be2net: Support for OS2BMC")
Signed-off-by: Venkat Duvvuru <VenkatKumar.Duvvuru@Emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c