numam-dpdk/app
Shy Shyman 3b931ddb5e app/testpmd: fix error detection in MTU command
MTU is used in testpmd to set the maximum payload size for packets.
According to testpmd, the setting influence RX only.
In rte_ethdev there's no relation between MTU setting and JUMBO offload
or rx_max_pkt_len.

The previous fix in patch referenced below was meant to update the
correlated variables of max_pkt_len and JUMBO offload, but by doing so
it assumes that MTU setting can only exist when JUMBO offload supported
in the device. For example fail-safe device does supports set MTU and
doesn't support JUMBO offload, and in this case, though set MTU
succeeds, an error message is still printed since the JUMBO packet
offload is disabled.

The fix separates the two conditions to make sure the error
triggers only in case the set_mtu action actually failed.

Fixes: 150c9ac2df ("app/testpmd: update Rx offload after setting MTU")
Cc: stable@dpdk.org

Signed-off-by: Shy Shyman <shys@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
2020-06-16 19:21:07 +02:00
..
pdump app: fix usage help of options separated by dashes 2020-04-25 21:56:18 +02:00
proc-info app/procinfo: use strlcpy for copying string 2019-10-27 11:33:24 +01:00
test test/bitops: add bit operations test case 2020-06-16 14:34:39 +02:00
test-acl app: fix usage help of options separated by dashes 2020-04-25 21:56:18 +02:00
test-bbdev baseband/fpga_5gnr_fec: add configure function 2020-04-19 22:34:26 +02:00
test-cmdline replace unused attributes 2020-04-16 18:30:58 +02:00
test-compress-perf build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
test-crypto-perf app/crypto-perf: fix display of sample test vector 2020-05-11 13:17:43 +02:00
test-eventdev app/eventdev: check Tx adapter service ID 2020-05-14 15:16:37 +02:00
test-fib app/fib: fix parsing of invalid line 2020-05-19 19:25:30 +02:00
test-pipeline replace unused attributes 2020-04-16 18:30:58 +02:00
test-pmd app/testpmd: fix error detection in MTU command 2020-06-16 19:21:07 +02:00
test-sad build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
Makefile app/test-fib: add in default build 2020-04-10 11:38:02 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00