[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1449086871-19911-1-git-send-email-jiri@resnulli.us>
Date: Wed, 2 Dec 2015 21:07:23 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, idosch@...lanox.com, eladr@...lanox.com,
yotamg@...lanox.com, ogerlitz@...lanox.com, j.vosburgh@...il.com,
vfalico@...il.com, gospo@...ulusnetworks.com,
dsa@...ulusnetworks.com, nikolay@...ulusnetworks.com,
pjonnala@...adcom.com, f.fainelli@...il.com, sfeldma@...il.com,
john.fastabend@...il.com, roopa@...ulusnetworks.com, andrew@...n.ch
Subject: [patch net-next v2 00/28] bonding/team offload + mlxsw implementation
From: Jiri Pirko <jiri@...lanox.com>
This patchset introduces needed infrastructure for link aggregation
offload - for both team and bonding. It also implements the offload
in mlxsw driver.
Particulary, this patchset introduces possibility for upper driver
(bond/team/bridge/..) to pass type-specific info down to notifier listeners.
Info is passed along with NETDEV_CHANGEUPPER/NETDEV_PRECHANGEUPPER
notifiers. Listeners (drivers of netdevs being enslaved) can react
accordingly.
Other extension is for run-time use. This patchset introduces
new netdev notifier type - NETDEV_CHANGELOWERSTATE. Along with this
notification, the upper driver (bond/team/bridge/..) can pass some
information about lower device change, particulary link-up and
TX-enabled states. Listeners (drivers of netdevs being enslaved)
can react accordingly.
The last part of the patchset is implementation of LAG offload in mlxsw,
using both previously introduced infrastructre extensions.
Note that bond-speficic (and ugly) NETDEV_BONDING_INFO used by mlx4
can be removed and mlx4 can use the extensions this patchset adds.
I plan to convert it and get rid of NETDEV_BONDING_INFO in
a follow-up patchset.
---
v1->v2:
- added patch 1 and 2 per Andy's request
- couple of more or less cosmetic changes described in couple other patches
Ido Schimmel (2):
net: dev: Check CHANGEUPPER notifier return value
net: Add support for CHANGEUPPER notifier error injection
Jiri Pirko (26):
bonding: add 802.3ad support for 100G speeds
net: add netif_is_team_master helper
net: add netif_is_team_port helper
net: add netif_is_lag_master helper
net: add netif_is_lag_port helper
net: propagate upper priv via netdev_master_upper_dev_link
net: add possibility to pass information about upper device via
notifier
net: add info struct for LAG changeupper
team: fill-up LAG changeupper info struct and pass it along
bonding: fill-up LAG changeupper info struct and pass it along
net: introduce change lower state notifier
net: introduce lower state changed info structure for LAG lowers
team: rtnl_lock for options set
team: implement lower state change propagation
bonding: allow notifications for bond_set_slave_link_state
bonding: implement lower state change propagation
bonding: set inactive flags on release
mlxsw: spectrum: Add set_rx_mode ndo stub
mlxsw: core: Add support for packets received from LAG port
mlxsw: pci: Implement LAG processing for received packets
mlxsw: reg: Add link aggregation configuration registers definitions
mlxsw: reg: Add definition of LAG unicast record for SFD register
mlxsw: reg: Add definition of LAG unicast record for SFN register
mlxsw: spectrum: Implement LAG port join/leave
mlxsw: spectrum: Implement FDB add/remove/dump for LAG
mlxsw: spectrum: Implement LAG tx enabled lower state change
.../fault-injection/notifier-error-inject.txt | 1 +
drivers/net/bonding/bond_3ad.c | 11 +-
drivers/net/bonding/bond_main.c | 111 ++++--
drivers/net/ethernet/mellanox/mlxsw/core.c | 79 ++++-
drivers/net/ethernet/mellanox/mlxsw/core.h | 14 +-
drivers/net/ethernet/mellanox/mlxsw/pci.c | 17 +-
drivers/net/ethernet/mellanox/mlxsw/pci.h | 4 +-
drivers/net/ethernet/mellanox/mlxsw/reg.h | 394 ++++++++++++++++++++-
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 370 ++++++++++++++++++-
drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 35 +-
.../ethernet/mellanox/mlxsw/spectrum_switchdev.c | 182 ++++++++--
drivers/net/team/team.c | 55 ++-
drivers/net/team/team_mode_activebackup.c | 1 +
drivers/net/team/team_mode_broadcast.c | 1 +
drivers/net/team/team_mode_loadbalance.c | 1 +
drivers/net/team/team_mode_random.c | 1 +
drivers/net/team/team_mode_roundrobin.c | 1 +
drivers/net/vrf.c | 2 +-
include/linux/if_team.h | 1 +
include/linux/netdevice.h | 56 ++-
include/net/bonding.h | 39 +-
lib/netdev-notifier-error-inject.c | 1 +
net/batman-adv/hard-interface.c | 3 +-
net/bridge/br_if.c | 2 +-
net/core/dev.c | 50 ++-
net/openvswitch/vport-netdev.c | 2 +-
26 files changed, 1287 insertions(+), 147 deletions(-)
--
1.9.3
--
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