[ovs-dev] [PATCH] datapath: Convert internal_dev to ndo_fix_features.

Jesse Gross jesse at nicira.com
Thu Nov 3 16:28:34 UTC 2011


On Wed, Nov 2, 2011 at 5:27 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
> diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c
> index a468ac8..30cc96e 100644
> --- a/datapath/vport-internal_dev.c
> +++ b/datapath/vport-internal_dev.c
> @@ -185,6 +187,9 @@ static void do_setup(struct net_device *netdev)
>        netdev->features |= NETIF_F_HW_VLAN_TX;
>  #endif
>
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
> +       netdev->hw_features = netdev->features;
> +#endif

I think that we actually need to separate out features and hw_features
a little because we can't include NETIF_F_LLTX in the list of features
that can be toggled (the bridge does something similar).



More information about the dev mailing list