[dpdk-dev] [PATCH next 10/10] net/bond: convert to dynamic logging

Ferruh Yigit ferruh.yigit at intel.com
Fri Apr 27 01:41:53 CEST 2018


On 4/25/2018 4:56 PM, Stephen Hemminger wrote:
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

<...>

> +#define MODE6_DEBUG(info, src_ip, dst_ip, eth_h, arp_op, port, burstnumber) \
> +	rte_log(RTE_LOG_DEBUG, logtype_bond,				\

Variable is "bond_logtype", will fix while applying

<...>

> +int bond_logtype;
> +
> +RTE_INIT(bond_init_log);
> +static void
> +bond_init_log(void)
> +{
> +	bond_logtype = rte_log_register("pmd.net.bon");
> +	if (bond_logtype >= 0)
> +		rte_log_set_level(bond_logtype, RTE_LOG_NOTICE);
> +}

<...>



More information about the dev mailing list