net/bnxt: fix endianness while retrieving MTU from FW
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 24 Sep 2019 10:19:45 +0000 (15:49 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commit2f225d65423bbd7da67244cdad3a20eb29d67e1f
treeb15df62708bf2db3477b9b4684f26e8114726fbf
parent5526c8025d4d16e68b412e378b0ceab42dbcd9d4
net/bnxt: fix endianness while retrieving MTU from FW

In bnxt_hwrm_func_qcfg(), use rte_le_to_cpu_16 while getting
the mtu value from command response.

Fixes: 905cd45ce30e ("net/bnxt: use configured MTU during load")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c