[dpdk-dev] [PATCH v14 21/23] event/dlb: add PMD self-tests
David Marchand
david.marchand at redhat.com
Sat Oct 31 23:11:50 CET 2020
On Sat, Oct 31, 2020 at 7:24 PM Timothy McDaniel
<timothy.mcdaniel at intel.com> wrote:
> +static inline int
> +create_ports(int num_ports)
> +{
> + int i;
> +
> + if (num_ports > MAX_PORTS)
> + return -1;
> +
> + for (i = 0; i < num_ports; i++) {
> + struct rte_event_port_conf conf;
> +
> + if (rte_event_port_default_conf_get(evdev, i, &conf)) {
> + printf("%d: Error querying default port conf\n",
> + __LINE__);
> + return -1;
> + }
> +
> + if (rte_event_port_setup(evdev, i, &conf) < 0) {
> + printf("%d: Error setting up port %d\n", i, __LINE__);
Caught while diffing the dlb and dlb2 drivers...
Here, it should be __LINE__, i.
> + return -1;
> + }
> + }
> +
> + return 0;
> +}
--
David Marchand
More information about the dev
mailing list