On Tue,  4 Jul 2017 17:13:29 +0100
Ferruh Yigit <ferruh.yi...@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.

Reply via email to