]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: Fix vxlan endianity issue
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 19 Aug 2015 07:21:58 +0000 (10:21 +0300)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:13:26 +0000 (18:13 -0400)
Orabug: 22066196

Commit f34fa14cc033 ("bnx2x: Add vxlan RSS support") has introduced an
endianity issue when passing the vxlan UDP port to the HW.

Reported-by: <fengguang.wu@intel.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 0f8f27de19667075591eaffbf435dd78c73a2df4)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h

index d276de328c5ce7d31664b1157e7a0eca75724e98..b7d32e8412f14b8f9c3a71d4ff29d750a0d730d7 100644 (file)
@@ -967,7 +967,7 @@ static inline int bnx2x_func_start(struct bnx2x *bp)
        else /* CHIP_IS_E1X */
                start_params->network_cos_mode = FW_WRR;
 
-       start_params->vxlan_dst_port = cpu_to_le16(bp->vxlan_dst_port);
+       start_params->vxlan_dst_port = bp->vxlan_dst_port;
 
        start_params->inner_rss = 1;