[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100217.134330.48386140.davem@davemloft.net>
Date: Wed, 17 Feb 2010 13:43:30 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: jeffrey.t.kirsher@...el.com, netdev@...r.kernel.org,
gospo@...hat.com, vasu.dev@...el.com
Subject: Re: [net-next-2.6 PATCH 1/3] vlan: adds vlan_dev_select_queue
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 17 Feb 2010 14:51:15 +0100
> This is a bit dangerous and deserves a self contained patch IMHO.
>
> I would add for example a
> BUG_ON(vlandev->real_num_tx_queues > vlandev->num_tx_queues)
>
> ------------------
>
> For performance reason, we could avoid calling vlan_dev_select_queue()
> for real devices without ndo_select_queue() handler, this would need to
> mirror vlan_netdev_ops & vlan_netdev_accel_ops.
>
> It would also make vlan_dev_select_queue shorter and not duplicates
> internals of net/dev/core.c :
>
> static u16 vlan_dev_select_queue(struct net_device *dev, struct sk_buff
> *skb)
> {
> struct net_device *rdev = vlan_dev_info(dev)->real_dev;
> const struct net_device_ops *ops = rdev->netdev_ops;
>
> return ops->ndo_select_queue(rdev, skb);
> }
>
>
Jeff, please resubmit this patch set after addressing
Eric's feedback.
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists