[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1258573987.2780.20.camel@achroite.uk.solarflarecom.com>
Date: Wed, 18 Nov 2009 19:53:06 +0000
From: Ben Hutchings <bhutchings@...arflare.com>
To: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Cc: davem@...emloft.net, shemminger@...tta.com, netdev@...r.kernel.org,
gospo@...hat.com, Mitch Williams <mitch.a.williams@...el.com>
Subject: Re: [RFC PATCH 1/4] net: Add support to netdev ops for changing
hardware queue MAC and VLAN filters
On Tue, 2009-11-17 at 13:50 -0800, Jeff Kirsher wrote:
> From: Williams, Mitch A <mitch.a.williams@...el.com>
>
> Signed-off-by: Mitch Williams <mitch.a.williams@...el.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
> ---
>
> include/linux/netdevice.h | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 7043f85..6a70365 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -610,6 +610,8 @@ struct netdev_queue {
> * this function is called when a VLAN id is unregistered.
> *
> * void (*ndo_poll_controller)(struct net_device *dev);
> + * int (*ndo_set_queue_mac)(struct net_device *dev, int queue, u8* mac);
> + * int (*ndo_set_queue_vlan)(struct net_device *dev, int queue, u16 vlan);
> */
> #define HAVE_NET_DEVICE_OPS
> struct net_device_ops {
> @@ -659,6 +661,10 @@ struct net_device_ops {
> #define HAVE_NETDEV_POLL
> void (*ndo_poll_controller)(struct net_device *dev);
> #endif
> + int (*ndo_set_queue_mac)(struct net_device *dev,
> + int queue, u8 *mac);
> + int (*ndo_set_queue_vlan)(struct net_device *dev,
> + int queue, u16 vlan);
[...]
How do you remove a filter?
What about filtering on both MAC address and VLAN (our new controller
supports that)?
It seems like this could be defined as an extension to the existing
ethtool RX flow filter API.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
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