From: Yuval Mintz Date: Wed, 19 Aug 2015 07:21:58 +0000 (+0300) Subject: bnx2x: Fix vxlan endianity issue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f8f27de19667075591eaffbf435dd78c73a2df4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bnx2x: Fix vxlan endianity issue Commit f34fa14cc033 ("bnx2x: Add vxlan RSS support") has introduced an endianity issue when passing the vxlan UDP port to the HW. Reported-by: Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h index d276de328c5c..b7d32e8412f1 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h @@ -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;