netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1 net-next 0/4] Add destination MAC address to ethtool flow steering
@ 2012-12-12 12:13 Amir Vadai
  2012-12-12 12:13 ` [PATCH V1 net-next 1/3] net: ethtool: Add destination MAC address to flow steering API Amir Vadai
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Amir Vadai @ 2012-12-12 12:13 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Or Gerlitz, Amir Vadai, Hadar Har-Zion, Yan Burman

From: Yan Burman <yanb@mellanox.com>

In vSwitch configuration it is often beneficial to create flow steering
rules for L3/L4 traffic based on VM port. This requires destination MAC
address of that port to be present. Note that today the mlx4_en driver 
adds the mac address of itself to the flow spec, where under the new
ethtool flag suggested here it doesn't.

It may also be useful in macvlan devices.

These patches add kernel support for the new field (does not break old
userspace compatibility, so new ethtool will work on old kernels and
old ethtool will work with new kernels).

Also present here is the ethtool userspace patch.

See more details here http ://marc.info/?t=134977576500003

Changes from V0:
- Get rid of full_mac, zero_mac in favour of
    is_zero_ether_addr and is_broadcast_ether_addr

Yan Burman (3):
  net: ethtool: Add destination MAC address to flow steering API
  net/mlx4_en: Use generic etherdevice.h functions.
  net/mlx4_en: Add support for destination MAC in steering rules

 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 27 ++++++++++++++++---------
 include/uapi/linux/ethtool.h                    | 11 ++++++----
 2 files changed, 24 insertions(+), 14 deletions(-)

-- 
1.7.11.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-12 20:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-12 12:13 [PATCH V1 net-next 0/4] Add destination MAC address to ethtool flow steering Amir Vadai
2012-12-12 12:13 ` [PATCH V1 net-next 1/3] net: ethtool: Add destination MAC address to flow steering API Amir Vadai
2012-12-12 18:28   ` Ben Hutchings
2012-12-12 20:40     ` Amir Vadai
2012-12-12 12:13 ` [PATCH V1 net-next 2/3] net/mlx4_en: Use generic etherdevice.h functions Amir Vadai
2012-12-12 12:13 ` [PATCH V1 net-next 3/3] net/mlx4_en: Add support for destination MAC in steering rules Amir Vadai
2012-12-12 12:13 ` [PATCH ETHTOOL] Added dst-mac parameter for L3/L4 flow spec rules. This is usefull in vSwitch configurations Amir Vadai
2012-12-12 18:03 ` [PATCH V1 net-next 0/4] Add destination MAC address to ethtool flow steering David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).