lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1360239927-758-1-git-send-email-amirv@mellanox.com>
Date:	Thu,  7 Feb 2013 14:25:18 +0200
From:	Amir Vadai <amirv@...lanox.com>
To:	"David S. Miller" <davem@...emloft.net>
Cc:	Amir Vadai <amirv@...lanox.com>,
	Or Gerlitz <ogerlitz@...lanox.com>,
	Yan Burman <yanb@...lanox.com>, netdev@...r.kernel.org
Subject: [PATCH net-next v2 0/9] net/mlx4_en: Add support for unicast MAC filtering and FDB operations

This series from Yan Burman adds support for unicast MAC address filtering and
ndo FDB operations.  It also includes some optimizations to loopback related
decisions and checks in the TX/RX fast path and one cleanup, all in separate
patches.

Today, when adding macvlan devices, the NIC goes into promiscuous mode, since
unicast MAC filtering is not supported. With these changes, macvlan devices can
be added without the penalty of promiscuous mode.

If for some reason adding a unicast address filter fails e.g as of missing space in
the HW mac table, the device forces itself into promiscuous mode (and out of this
forced state when enough space is available).

Also, now it is possible to have bridge under multi-function configuration that include
PF and VFs.  In order to use bridge over PF/VFs, VM MAC fdb entries must be added e.g.
using 'bridge fdb add' command.

Changes from v1 - based on more comments from Eric Dumazet:
* added failure handling when adding unicast address filter

Changes from v0 - based on comments from Eric Dumazet:
* Removed unneeded synchronize_rcu()
* Use kfree_rcu() instead of synchronize_rcu() + kfree()

Yan Burman (9):
  net/mlx4_en: Optimize loopback related checks in data path
  net/mlx4_en: Optimize Rx fast path filter checks
  net/mlx4_en: Cleanup multiline strings
  net/mlx4: Move Ethernet related functionality from mlx4_core to
    mlx4_en
  net/mlx4_en: Re-arrange ndo_set_rx_mode related code
  net/mlx4_en: Save previous MAC address of the port so we can replace
    it later
  net/mlx4_en: Manage hash of MAC addresses per port
  net/mlx4_en: Add unicast MAC filtering
  net/mlx4_en: Implement ndo fdb functionality

 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c  |    9 +-
 drivers/net/ethernet/mellanox/mlx4/en_main.c     |   22 +
 drivers/net/ethernet/mellanox/mlx4/en_netdev.c   |  765 +++++++++++++++++-----
 drivers/net/ethernet/mellanox/mlx4/en_rx.c       |   53 +-
 drivers/net/ethernet/mellanox/mlx4/en_selftest.c |    3 +
 drivers/net/ethernet/mellanox/mlx4/en_tx.c       |    2 +-
 drivers/net/ethernet/mellanox/mlx4/main.c        |    5 +-
 drivers/net/ethernet/mellanox/mlx4/mlx4.h        |    7 -
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h     |   33 +-
 drivers/net/ethernet/mellanox/mlx4/port.c        |  193 +------
 include/linux/mlx4/device.h                      |    5 +-
 11 files changed, 709 insertions(+), 388 deletions(-)

-- 
1.7.8.2

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ