net/bnxt: fix jumbo frame configuration in firmware
authorRahul Gupta <rahul.gupta@broadcom.com>
Fri, 15 Nov 2019 09:40:09 +0000 (15:10 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commit41a9d881cb86162e8b4e5795f4fcc86281ebaa05
treedf8e8681c7cef79d32296dc80f8cc9f390b79383
parent89a0deb866dc42ead92b79e6e7159622e1ab8490
net/bnxt: fix jumbo frame configuration in firmware

In order to prevent reconfiguration of firmware resources for every
MTU change, configure FW with max MTU value using hwrm_func_cfg
to support all frame sizes. There is no need to overwrite the driver
level MTU variable data->mtu with the FW MTU.

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