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

Jesse Gross jesse at nicira.com
Thu Nov 3 21:16:57 UTC 2011


On Thu, Nov 3, 2011 at 1:25 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..7132b9f 100644
> --- a/datapath/vport-internal_dev.c
> +++ b/datapath/vport-internal_dev.c
[...]
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
> +       netdev->hw_features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA |
> +                        NETIF_F_HW_CSUM | NETIF_F_TSO | NETIF_F_HW_VLAN_TX;
> +#endif

I actually just meant a small change.  I think you can do something like this:
netdev->hw_features = netdev->features & ~NETIF_F_LLTX



More information about the dev mailing list