bnx2x: Fix vxlan endianity issue
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 19 Aug 2015 07:21:58 +0000 (10:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 21:08:08 +0000 (14:08 -0700)
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>
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;