[dpdk-test-report] |WARNING| pw102655 [PATCH] ethdev: forbid MTU set before device configure
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Fri Oct 22 12:50:00 CEST 2021
Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/102655
_apply patch failure_
Submitter: Andrew Rybchenko <Andrew.Rybchenko at oktetlabs.ru>
Date: Friday, October 22 2021 10:18:28
Applied on: CommitID:3ac2dffae88e8eb5c374b1fdd40d605014526510
Apply patch set 102655 failed:
Checking patch lib/ethdev/rte_ethdev.c...
error: while searching for:
return ret;
}
ret = (*dev->dev_ops->mtu_set)(dev, mtu);
if (ret == 0)
dev->data->mtu = mtu;
error: patch failed: lib/ethdev/rte_ethdev.c:3728
Applying patch lib/ethdev/rte_ethdev.c with 1 reject...
Rejected hunk #1.
diff a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c (rejected hunks)
@@ -3728,6 +3728,13 @@ rte_eth_dev_set_mtu(uint16_t port_id, uint16_t mtu)
return ret;
}
+ if (dev->data->dev_configured == 0) {
+ RTE_ETHDEV_LOG(ERR,
+ "Port %u must be configured before MTU set\n",
+ port_id);
+ return -EINVAL;
+ }
+
ret = (*dev->dev_ops->mtu_set)(dev, mtu);
if (ret == 0)
dev->data->mtu = mtu;
https://lab.dpdk.org/results/dashboard/patchsets/19644/
UNH-IOL DPDK Community Lab
More information about the test-report
mailing list