[dpdk-dev] [PATCH v4 04/17] net/ionic: register and initialize the adapter

Stephen Hemminger stephen at networkplumber.org
Fri Dec 20 01:19:20 CET 2019


On Thu, 19 Dec 2019 23:18:34 +0100
Alfredo Cardigliano <cardigliano at ntop.org> wrote:

> +	adapter = rte_zmalloc("ionic", sizeof(*adapter), 0);
> +
> +	if (!adapter) {

Don't need a blank line here; better to have assignment and check next to each other.

You probably want to use rte_zmalloc_socket to make sure that the adapter memory
is on the same numa node as the device.


More information about the dev mailing list