Wei Hu (Xavier) 150c9ac2df app/testpmd: update Rx offload after setting MTU
Currently, Rx offload capabilities and max_rx_pkt_len in the struct
variable named rte_port are not updated after setting mtu successfully
in port_mtu_set function by 'port config mtu <port_id> <value>' command.
This may lead to reconfig mtu to the initial value in the driver when
recalling rte_eth_dev_configure API interface.

This patch updates Rx offload capabilities and max_rx_pkt_len after
setting mtu successfully when configuring mtu.

Fixes: ae03d0d18adf ("app/testpmd: command to configure MTU")
Cc: stable@dpdk.org

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-02-14 12:42:13 +01:00
..
2019-04-11 14:27:32 +02:00
2019-04-11 14:27:32 +02:00
2019-11-20 17:36:06 +01:00
2020-02-13 18:47:28 +01:00
2020-02-05 14:37:41 +01:00
2019-05-24 13:34:46 +02:00
2020-02-13 18:47:28 +01:00
2020-02-13 18:47:28 +01:00