Skip to contentSkip to conversation

net: introduce ethernet teaming device

PATCH Superseded Jiri Pirko 4 participants 9 messages Nov 10, 2011 – Nov 12, 2011

Subsystems (4)

v7 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

PATCH v7 1/1 net: introduce ethernet teaming device

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

Userspace library called libteam with couple of demo apps is available here:
https://github.com/jpirko/libteam
Note it's still in its dipers atm.

team<->libteam use generic netlink for communication. That and rtnl suppose to be the only way to configure team device, no sysfs etc.

Python binding of libteam was recently introduced. Daemon providing arpmon/miimon active-backup functionality will be introduced shortly. All what's necessary is already implemented in kernel team driver.

v6->v7:
- transmit and receive functions are not checked in hot paths. That also resolves memory leak on transmit when no port is present

v5->v6:
- changed couple of _rcu calls to non _rcu ones in non-readers

v4->v5:
- team_change_mtu() uses team->lock while travesing though port list
- mac address changes are moved completely to jurisdiction of userspace daemon. This way the daemon can do FOM1, FOM2 and possibly other weird things with mac addresses. Only round-robin mode sets up all ports to bond's address then enslaved.
- Extended Kconfig text

v3->v4:
- remove redundant synchronize_rcu from __team_change_mode()
- revert "set and clear of mode_ops happens per pointer, not per byte"
- extend comment of function __team_change_mode()

v2->v3:
- team_change_mtu() uses rcu version of list traversal to unwind
- set and clear of mode_ops happens per pointer, not per byte
- port hashlist changed to be embedded into team structure
- error branch in team_port_enter() does cleanup now
- fixed rtln->rtnl

v1->v2:
- modes are made as modules. Makes team more modular and extendable.
- several commenters' nitpicks found on v1 were fixed
- several other bugs were fixed.
- note I ignored Eric's comment about roundrobin port selector as Eric's way may be easily implemented as another mode (mode "random") in future.

---
 Documentation/networking/team.txt         |    2 +
 MAINTAINERS                               |    7 +
 drivers/net/Kconfig                       |    2 +
 drivers/net/Makefile                      |    1 +
 drivers/net/team/Kconfig                  |   43 +
 drivers/net/team/Makefile                 |    7 +
 drivers/net/team/team.c                   | 1581 +++++++++++++++++++++++++++++
 drivers/net/team/team_mode_activebackup.c |  137 +++
 drivers/net/team/team_mode_roundrobin.c   |  107 ++
 include/linux/Kbuild                      |    1 +
 include/linux/if.h                        |    1 +
 include/linux/if_team.h                   |  242 +++++
 12 files changed, 2131 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/networking/team.txt
 create mode 100644 drivers/net/team/Kconfig
 create mode 100644 drivers/net/team/Makefile
 create mode 100644 drivers/net/team/team.c
 create mode 100644 drivers/net/team/team_mode_activebackup.c
 create mode 100644 drivers/net/team/team_mode_roundrobin.c
 create mode 100644 include/linux/if_team.h
Documentation/networking/team.txt new file +2 -0
new file mode 100644
index 0000000..5a01368
@@ -0,0 +1,2 @@
+Team devices are driven from userspace via libteam library which is here:
+	https://github.com/jpirko/libteam
MAINTAINERS +7 -0
index 4808256..8d94169 100644
@@ -6484,6 +6484,13 @@ W:	http://tcp-lp-mod.sourceforge.net/
 S:	Maintained
 F:	net/ipv4/tcp_lp.c
 
+TEAM DRIVER
+M:	Jiri Pirko <[email protected]>
+L:	[email protected]
+S:	Supported
+F:	drivers/net/team/
+F:	include/linux/if_team.h
+
 TEGRA SUPPORT
 M:	Colin Cross <[email protected]>
 M:	Olof Johansson <[email protected]>
drivers/net/Kconfig +2 -0
index 583f66c..b3020be 100644
@@ -125,6 +125,8 @@ config IFB
 	  'ifb1' etc.
 	  Look at the iproute2 documentation directory for usage etc
 
+source "drivers/net/team/Kconfig"
+
 config MACVLAN
 	tristate "MAC-VLAN support (EXPERIMENTAL)"
 	depends on EXPERIMENTAL
drivers/net/Makefile +1 -0
index fa877cd..4e4ebfe 100644
@@ -17,6 +17,7 @@ obj-$(CONFIG_NET) += Space.o loopback.o
 obj-$(CONFIG_NETCONSOLE) += netconsole.o
 obj-$(CONFIG_PHYLIB) += phy/
 obj-$(CONFIG_RIONET) += rionet.o
+obj-$(CONFIG_NET_TEAM) += team/
 obj-$(CONFIG_TUN) += tun.o
 obj-$(CONFIG_VETH) += veth.o
 obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
drivers/net/team/Kconfig new file +43 -0

43 lines not on this page · raw message

drivers/net/team/Makefile new file +7 -0
new file mode 100644
index 0000000..85f2028
@@ -0,0 +1,7 @@
+#
+# Makefile for the network team driver
+#
+
+obj-$(CONFIG_NET_TEAM) += team.o
+obj-$(CONFIG_NET_TEAM_MODE_ROUNDROBIN) += team_mode_roundrobin.o
+obj-$(CONFIG_NET_TEAM_MODE_ACTIVEBACKUP) += team_mode_activebackup.o
drivers/net/team/team.c new file +1581 -0

1,581 lines not on this page · raw message

drivers/net/team/team_mode_activebackup.c new file +137 -0

137 lines not on this page · raw message

drivers/net/team/team_mode_roundrobin.c new file +107 -0

107 lines not on this page · raw message

include/linux/Kbuild +1 -0
index 619b565..0b091b3 100644
@@ -185,6 +185,7 @@ header-y += if_pppol2tp.h
 header-y += if_pppox.h
 header-y += if_slip.h
 header-y += if_strip.h
+header-y += if_team.h
 header-y += if_tr.h
 header-y += if_tun.h
 header-y += if_tunnel.h
include/linux/if.h +1 -0
index db20bd4..06b6ef6 100644
@@ -79,6 +79,7 @@
 #define IFF_TX_SKB_SHARING	0x10000	/* The interface supports sharing
 					 * skbs on transmit */
 #define IFF_UNICAST_FLT	0x20000		/* Supports unicast filtering	*/
+#define IFF_TEAM_PORT	0x40000		/* device used as team port */
 
 #define IF_GET_IFACE	0x0001		/* for querying only */
 #define IF_GET_PROTO	0x0002
include/linux/if_team.h new file +242 -0

242 lines not on this page · raw message

Signature · 1 line
1.7.6
#1 lore raw

drivers/net/team/team.c line 219

Quoted 11 lines · Jiri Pirko

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

drivers/net/team/team.c new file +6 -0
+static bool team_dummy_transmit(struct team *team, struct sk_buff *skb)
+{
+	dev_kfree_skb(skb);
+	return false;
+}
+

ndo_start_xmit() method can be called with IRQ disabled (netpoll ?), so dev_kfree_skb_any() is better ?

author
#2 lore raw
Quoted 6 lines · Thu, Nov 10, 2011 at 05:02:10PM CET, [email protected] wrote:
Quoted 4 lines · Jiri Pirko

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

Quoted 10 lines

drivers/net/team/team.c line 219

Quoted 6 lines
drivers/net/team/team.c new file +6 -0
+static bool team_dummy_transmit(struct team *team, struct sk_buff *skb)
+{
+	dev_kfree_skb(skb);
+	return false;
+}
+

ndo_start_xmit() method can be called with IRQ disabled (netpoll ?), so dev_kfree_skb_any() is better ?

For example bonding is using dev_kfree_skb in xmit as well. I propose this to be eventually addressed in follow-up patch.

Quoted 2 lines
#3 lore raw
In reply to Jiri Pirko
Quoted 17 lines · On Thu, 10 Nov 2011 16:41:38 +0100 Jiri Pirko <[email protected]> wrote:

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

Userspace library called libteam with couple of demo apps is available here:
https://github.com/jpirko/libteam
Note it's still in its dipers atm.

team<->libteam use generic netlink for communication. That and rtnl suppose to be the only way to configure team device, no sysfs etc.

Python binding of libteam was recently introduced. Daemon providing arpmon/miimon active-backup functionality will be introduced shortly. All what's necessary is already implemented in kernel team driver.

Quoted 7 lines

v6->v7:
- transmit and receive functions are not checked in hot paths. That also resolves memory leak on transmit when no port is present

You're right. No need to patch those function names if we use libnl from git.

[...]

drivers/net/team/team.c line 857

Quoted 10 lines
drivers/net/team/team.c new file +10 -0
+static void team_vlan_rx_add_vid(struct net_device *dev, uint16_t vid)
+{
+	struct team *team = netdev_priv(dev);
+	struct team_port *port;
+
+	rcu_read_lock();
+	list_for_each_entry_rcu(port, &team->port_list, list) {
+		const struct net_device_ops *ops = port->dev->netdev_ops;
+
+		ops->ndo_vlan_rx_add_vid(port->dev, vid);

This causes a oops when enslaving a tg3 device because there is no ndo_vlan_rx_add_vid().

Quoted 4 lines
drivers/net/team/team.c new file +4 -0
+	}
+	rcu_read_unlock();
+}
+

drivers/net/team/team.c line 871

Quoted 10 lines
drivers/net/team/team.c new file +10 -0
+static void team_vlan_rx_kill_vid(struct net_device *dev, uint16_t vid)
+{
+	struct team *team = netdev_priv(dev);
+	struct team_port *port;
+
+	rcu_read_lock();
+	list_for_each_entry_rcu(port, &team->port_list, list) {
+		const struct net_device_ops *ops = port->dev->netdev_ops;
+
+		ops->ndo_vlan_rx_kill_vid(port->dev, vid);

Well, probably here too, though you can't reach this point without crashing at team_vlan_rx_add_vid() first.

fbl

#4 lore raw
Quoted 32 lines · On Fri, 11 Nov 2011 16:04:41 -0200 Flavio Leitner <[email protected]> wrote:
Quoted 17 lines · On Thu, 10 Nov 2011 16:41:38 +0100 Jiri Pirko <[email protected]> wrote:

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

Userspace library called libteam with couple of demo apps is available here:
https://github.com/jpirko/libteam
Note it's still in its dipers atm.

team<->libteam use generic netlink for communication. That and rtnl suppose to be the only way to configure team device, no sysfs etc.

Python binding of libteam was recently introduced. Daemon providing arpmon/miimon active-backup functionality will be introduced shortly. All what's necessary is already implemented in kernel team driver.

Quoted 7 lines

v6->v7:
- transmit and receive functions are not checked in hot paths. That also resolves memory leak on transmit when no port is present

You're right. No need to patch those function names if we use libnl from git.

[...]

Quoted 14 lines

drivers/net/team/team.c line 857

Quoted 10 lines
drivers/net/team/team.c new file +10 -0
+static void team_vlan_rx_add_vid(struct net_device *dev, uint16_t vid)
+{
+	struct team *team = netdev_priv(dev);
+	struct team_port *port;
+
+	rcu_read_lock();
+	list_for_each_entry_rcu(port, &team->port_list, list) {
+		const struct net_device_ops *ops = port->dev->netdev_ops;
+
+		ops->ndo_vlan_rx_add_vid(port->dev, vid);

This causes a oops when enslaving a tg3 device because there is no ndo_vlan_rx_add_vid().

Sorry, I should have said when bring team0 up:

[root@f16i7 ~]# ip link set team0 up
Killed

BUG: unable to handle kernel NULL pointer dereference at           (null)
IP: [<          (null)>]           (null)
PGD 18ee5b067 PUD 18d9cd067 PMD 0
Oops: 0010 [#1] SMP

d_timer snd soundcore snd_page_alloc pl2303 usbserial iTCO_wdt iTCO_vendor_support raid0 i2c_i801 pcspkr microcode serio_raw uinput floppy joydev ipv6 autofs4 ata_generic firewire_ohci pata_acpi firewire_core crc_itu_t pata_marvell nouveau ttm drm_kms_helper drm hwmon i2c_algo_bit i2c_core mxm_wmi wmi video [last unloaded: scsi_wait_scan]

Pid: 21877, comm: ip Not tainted 3.2.0-rc1-10901-g40709d7 #31 /DX58SO

RIP: 0010:[<0000000000000000>]  [<          (null)>]           (null)
RSP: 0018:ffff88018eecd6a0  EFLAGS: 00010283
RAX: ffffffffa02a4370 RBX: ffff8801a4d04500 RCX: 0000000000000e7f
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880198356000
RBP: ffff88018eecd6d8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff880181d57600 R12: 0000000000000000
R13: ffff8801a526f7d8 R14: ffffffffa032f0c0 R15: 0000000000000000
FS:  00007f52ae475700(0000) GS:ffff8801afcc0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 00000001983ab000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process ip (pid: 21877, threadinfo ffff88018eecc000, task ffff88018db8aea0)
Stack:
 ffffffffa01e21ca ffffffff81a36700 ffff8801a4d04518 ffff8801a526f000
 0000000000000001 ffff8801a526f000 00000000fffffff0 ffff88018eecd738
 ffffffffa03062f5 ffff88018eecd708 00000000000080fe ffff88018eecd6f8
Call Trace:
 [<ffffffffa01e21ca>] ? team_vlan_rx_add_vid+0x45/0x69 [team]
 [<ffffffffa03062f5>] vlan_device_event+0xd5/0x3e2 [8021q]
 [<ffffffff8148e97b>] notifier_call_chain+0x37/0x63
 [<ffffffff8106d2a4>] raw_notifier_call_chain+0x14/0x16
 [<ffffffff813d1fb1>] call_netdevice_notifiers+0x4a/0x4f
 [<ffffffff813d636d>] __dev_notify_flags+0x37/0x5b
 [<ffffffff813d63d9>] dev_change_flags+0x48/0x54
 [<ffffffff813e0ace>] do_setlink+0x2b0/0x7a5
 [<ffffffff8123c078>] ? __nla_reserve+0x26/0x4e
 [<ffffffff813e19ed>] rtnl_newlink+0x253/0x46e
 [<ffffffff813e184b>] ? rtnl_newlink+0xb1/0x46e
 [<ffffffff813e158f>] rtnetlink_rcv_msg+0x23b/0x251
 [<ffffffff813e1354>] ? __rtnl_unlock+0x17/0x17
 [<ffffffff813f55d5>] netlink_rcv_skb+0x42/0x8d
 [<ffffffff813e06aa>] rtnetlink_rcv+0x26/0x2d
 [<ffffffff813f5164>] netlink_unicast+0xec/0x156
 [<ffffffff813f53c9>] netlink_sendmsg+0x1fb/0x233
 [<ffffffff813c27f7>] sock_sendmsg+0xe6/0x109
 [<ffffffff81229308>] ? radix_tree_lookup_slot+0xe/0x10
 [<ffffffff810cb0c8>] ? unlock_page+0x27/0x2b
 [<ffffffff810e67b8>] ? __do_fault+0x351/0x38b
 [<ffffffff8103ae47>] ? should_resched+0xe/0x2d
 [<ffffffff8148a03d>] ? _cond_resched+0xe/0x22
 [<ffffffff8103ae47>] ? should_resched+0xe/0x2d
 [<ffffffff813cc733>] ? copy_from_user+0x2f/0x31
 [<ffffffff813ccb1e>] ? verify_iovec+0x52/0xa4
 [<ffffffff813c2adc>] __sys_sendmsg+0x213/0x2ba
 [<ffffffff810e5eaa>] ? pmd_offset+0x19/0x3f
 [<ffffffff810e9008>] ? handle_mm_fault+0x103/0x118
 [<ffffffff8148e8ed>] ? do_page_fault+0x343/0x39a
 [<ffffffff810ed7a3>] ? do_brk+0x23f/0x293
 [<ffffffff813c46ee>] sys_sendmsg+0x42/0x60
 [<ffffffff81491d82>] system_call_fastpath+0x16/0x1b
Code:  Bad RIP value.
RIP  [<          (null)>]           (null)
 RSP <ffff88018eecd6a0>
CR2: 0000000000000000
---[ end trace 8255e7c0eb274d5c ]---

fbl

#5 lore raw
Quoted 73 lines · On Fri, 11 Nov 2011 17:05:09 -0200 Flavio Leitner <[email protected]> wrote:
Quoted 32 lines · On Fri, 11 Nov 2011 16:04:41 -0200 Flavio Leitner <[email protected]> wrote:
Quoted 17 lines · On Thu, 10 Nov 2011 16:41:38 +0100 Jiri Pirko <[email protected]> wrote:

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

Userspace library called libteam with couple of demo apps is available here:
https://github.com/jpirko/libteam
Note it's still in its dipers atm.

team<->libteam use generic netlink for communication. That and rtnl suppose to be the only way to configure team device, no sysfs etc.

Python binding of libteam was recently introduced. Daemon providing arpmon/miimon active-backup functionality will be introduced shortly. All what's necessary is already implemented in kernel team driver.

Quoted 7 lines

v6->v7:
- transmit and receive functions are not checked in hot paths. That also resolves memory leak on transmit when no port is present

You're right. No need to patch those function names if we use libnl from git.

[...]

Quoted 14 lines

drivers/net/team/team.c line 857

Quoted 10 lines
drivers/net/team/team.c new file +10 -0
+static void team_vlan_rx_add_vid(struct net_device *dev, uint16_t vid)
+{
+	struct team *team = netdev_priv(dev);
+	struct team_port *port;
+
+	rcu_read_lock();
+	list_for_each_entry_rcu(port, &team->port_list, list) {
+		const struct net_device_ops *ops = port->dev->netdev_ops;
+
+		ops->ndo_vlan_rx_add_vid(port->dev, vid);

This causes a oops when enslaving a tg3 device because there is no ndo_vlan_rx_add_vid().

Sorry, I should have said when bring team0 up:

[root@f16i7 ~]# ip link set team0 up
Killed

BUG: unable to handle kernel NULL pointer dereference at           (null)
IP: [<          (null)>]           (null)
PGD 18ee5b067 PUD 18d9cd067 PMD 0
Oops: 0010 [#1] SMP

d_timer snd soundcore snd_page_alloc pl2303 usbserial iTCO_wdt iTCO_vendor_support raid0 i2c_i801 pcspkr microcode serio_raw uinput floppy joydev ipv6 autofs4 ata_generic firewire_ohci pata_acpi firewire_core crc_itu_t pata_marvell nouveau ttm drm_kms_helper drm hwmon i2c_algo_bit i2c_core mxm_wmi wmi video [last unloaded: scsi_wait_scan]

Pid: 21877, comm: ip Not tainted 3.2.0-rc1-10901-g40709d7 #31 /DX58SO

RIP: 0010:[<0000000000000000>]  [<          (null)>]           (null)
RSP: 0018:ffff88018eecd6a0  EFLAGS: 00010283
RAX: ffffffffa02a4370 RBX: ffff8801a4d04500 RCX: 0000000000000e7f
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880198356000
RBP: ffff88018eecd6d8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff880181d57600 R12: 0000000000000000
R13: ffff8801a526f7d8 R14: ffffffffa032f0c0 R15: 0000000000000000
FS:  00007f52ae475700(0000) GS:ffff8801afcc0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 00000001983ab000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Quoted 2 lines

Process ip (pid: 21877, threadinfo ffff88018eecc000, task ffff88018db8aea0)

I patched the kernel to test if there is ops->ndo_vlan_rx_add_vid before call it and works out, no more oopses.

Well, as there is no active-backup daemon yet (right?), only the link notification is sent to team_monitor when I remove the cable from the NIC, so I have to switch manually active and backup slaves.

ping -f, ssh, and a script to change active slave every second are running in parallel.

I haven't noticed any other issue so far.
fbl

author
#6 lore raw
Quoted 79 lines · Fri, Nov 11, 2011 at 08:58:45PM CET, [email protected] wrote:
Quoted 73 lines · On Fri, 11 Nov 2011 17:05:09 -0200 Flavio Leitner <[email protected]> wrote:
Quoted 32 lines · On Fri, 11 Nov 2011 16:04:41 -0200 Flavio Leitner <[email protected]> wrote:
Quoted 17 lines · On Thu, 10 Nov 2011 16:41:38 +0100 Jiri Pirko <[email protected]> wrote:

This patch introduces new network device called team. It supposes to be very fast, simple, userspace-driven alternative to existing bonding driver.

Userspace library called libteam with couple of demo apps is available here:
https://github.com/jpirko/libteam
Note it's still in its dipers atm.

team<->libteam use generic netlink for communication. That and rtnl suppose to be the only way to configure team device, no sysfs etc.

Python binding of libteam was recently introduced. Daemon providing arpmon/miimon active-backup functionality will be introduced shortly. All what's necessary is already implemented in kernel team driver.

Quoted 7 lines

v6->v7:
- transmit and receive functions are not checked in hot paths. That also resolves memory leak on transmit when no port is present

You're right. No need to patch those function names if we use libnl from git.

[...]

Quoted 14 lines

drivers/net/team/team.c line 857

Quoted 10 lines
drivers/net/team/team.c new file +10 -0
+static void team_vlan_rx_add_vid(struct net_device *dev, uint16_t vid)
+{
+	struct team *team = netdev_priv(dev);
+	struct team_port *port;
+
+	rcu_read_lock();
+	list_for_each_entry_rcu(port, &team->port_list, list) {
+		const struct net_device_ops *ops = port->dev->netdev_ops;
+
+		ops->ndo_vlan_rx_add_vid(port->dev, vid);

This causes a oops when enslaving a tg3 device because there is no ndo_vlan_rx_add_vid().

Sorry, I should have said when bring team0 up:

[root@f16i7 ~]# ip link set team0 up
Killed

BUG: unable to handle kernel NULL pointer dereference at           (null)
IP: [<          (null)>]           (null)
PGD 18ee5b067 PUD 18d9cd067 PMD 0
Oops: 0010 [#1] SMP

d_timer snd soundcore snd_page_alloc pl2303 usbserial iTCO_wdt iTCO_vendor_support raid0 i2c_i801 pcspkr microcode serio_raw uinput floppy joydev ipv6 autofs4 ata_generic firewire_ohci pata_acpi firewire_core crc_itu_t pata_marvell nouveau ttm drm_kms_helper drm hwmon i2c_algo_bit i2c_core mxm_wmi wmi video [last unloaded: scsi_wait_scan]

Pid: 21877, comm: ip Not tainted 3.2.0-rc1-10901-g40709d7 #31 /DX58SO

RIP: 0010:[<0000000000000000>]  [<          (null)>]           (null)
RSP: 0018:ffff88018eecd6a0  EFLAGS: 00010283
RAX: ffffffffa02a4370 RBX: ffff8801a4d04500 RCX: 0000000000000e7f
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880198356000
RBP: ffff88018eecd6d8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff880181d57600 R12: 0000000000000000
R13: ffff8801a526f7d8 R14: ffffffffa032f0c0 R15: 0000000000000000
FS:  00007f52ae475700(0000) GS:ffff8801afcc0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 00000001983ab000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Quoted 2 lines

Process ip (pid: 21877, threadinfo ffff88018eecc000, task ffff88018db8aea0)

Quoted 2 lines

I patched the kernel to test if there is ops->ndo_vlan_rx_add_vid before call it and works out, no more oopses.

Yes, this should be checked. I missed that. I would like to address this as follow up patch because I'm sure it's not the last bug in team (I would be sending Vx of the patch for long time :( )

Quoted 4 lines

Well, as there is no active-backup daemon yet (right?), only the link notification is sent to team_monitor when I remove the cable from the NIC, so I have to switch manually active and backup slaves.

Correct. I plan to do very simple active-backup daemon written in python in matter of days. Keep pulling libteam git.

Quoted 5 lines

ping -f, ssh, and a script to change active slave every second are running in parallel.

I haven't noticed any other issue so far.

Thanks for testing this Flavio!

Jirka

Quoted 1 line

fbl

maintainer
#7 lore raw

From: Jiri Pirko <[email protected]>
Date: Sat, 12 Nov 2011 01:15:00 +0100

Quoted 3 lines

Yes, this should be checked. I missed that. I would like to address this as follow up patch because I'm sure it's not the last bug in team (I would be sending Vx of the patch for long time :( )

No, Jiri. Known bugs with obvious fixes get fixed first.

You see it as an endless process, but rather the code just isn't ready yet if people can still find easy to diagnose and fix flaws so quickly.

author
#8 lore raw
Quoted 7 lines · Sat, Nov 12, 2011 at 06:45:55AM CET, [email protected] wrote:

From: Jiri Pirko <[email protected]>
Date: Sat, 12 Nov 2011 01:15:00 +0100

Quoted 3 lines

Yes, this should be checked. I missed that. I would like to address this as follow up patch because I'm sure it's not the last bug in team (I would be sending Vx of the patch for long time :( )

Quoted 5 lines

No, Jiri. Known bugs with obvious fixes get fixed first.

You see it as an endless process, but rather the code just isn't ready yet if people can still find easy to diagnose and fix flaws so quickly.

Okay, v8 posted.

thanks Dave.