]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerManjunath Govindashetty <manjunath.govindashetty@oracle.com>
Fri, 16 Oct 2015 00:07:54 +0000 (17:07 -0700)
commitfbc8adfe621a80580b9c2732b12da21fe3e11a98
tree3fb845a7b6741222bc62185dce06e4158c0d94d4
parent3a4c20e409ad33ebb66be37e1424a0540151c015
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