[dpdk-dev] [PATCH v10 12/20] unci: add netdevice ops

Stephen Hemminger stephen at networkplumber.org
Wed Jul 5 21:12:16 CEST 2017


On Tue,  4 Jul 2017 17:13:29 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> +#if (KERNEL_VERSION(3, 9, 0) <= LINUX_VERSION_CODE)
> +static int unci_net_change_carrier(struct net_device *dev, bool new_carrier)
> +{
> +	if (new_carrier)
> +		netif_carrier_on(dev);
> +	else
> +		netif_carrier_off(dev);
> +	return 0;
> +}
> +#endif

Don't really need ndo_change_carrier. It is meant for layered devices like team
device.

For unci, the carrier state should always track what the DPDK driver reports.



More information about the dev mailing list