On Sat, Oct 31, 2020 at 7:24 PM Timothy McDaniel <timothy.mcdan...@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