On Thu, Feb 20, 2014 at 09:27:17PM -0300, Flavio Leitner wrote:
On Thu, Feb 20, 2014 at 09:11:00PM -0300, Flavio Leitner wrote:
> On Thu, Feb 20, 2014 at 04:23:21PM +0100, Jonas Johansson wrote:
> > Hi,
> >
> > I have configured teamd witch the lacp runner. When a port has state
> > disabled, all LACPDU frames are received in lacpdu_recv(), but when LACP
> > has reached an agreement (state "current") the port will become
enabled and
> > LACPDU frames are no longer received by the port. After the LACP timeout
> > the state will be changed to "expired" and the port will be disabled
and
> > LACPDUs can be received again.
> >
> > In the kernel driver, team.c, the team_handle_frame() will return
> > RX_HANDLER_EXACT when a port is disabled and RX_HANDLER_ANOTHER for an
> > enabled LACP port. This means that the a enabled port will divert all
> > traffic to the team device, which teamd (using lacp) isn't listening to.
> >
> > I made a kernel patch which seems to work. Thoughts?
>
> Interesting, I can't make it work regardless of the patch.
> My switch reports only one port as part of the trunk.
The port that is failing shows the LACPDU with states
Active, Aggregation only.
21:40:25.399945 00:10:18:38:0d:dc (oui Unknown) > 01:80:c2:00:00:02 (oui
Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length
110
Actor Information TLV (0x01), length 20
System 00:10:18:38:0d:dc (oui Unknown), System Priority 65535,
Key 0, Port 3, Port Priority 255
State Flags [Activity, Aggregation, Synchronization,
Collecting, Distributing]
0x0000: ffff 0010 1838 0ddc 0000 00ff 0003 3d00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 30:46:9a:10:b9:1a (oui Unknown), System Priority 32768,
Key 14, Port 5, Port Priority 128
State Flags [Activity, Aggregation]
0x0000: 8000 3046 9a10 b91a 000e 0080 0005 0500
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
21:40:25.635388 30:46:9a:10:b9:1c (oui Unknown) > 01:80:c2:00:00:02 (oui
Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length
110
Actor Information TLV (0x01), length 20
System 30:46:9a:10:b9:1a (oui Unknown), System Priority 32768,
Key 14, Port 5, Port Priority 128
State Flags [Activity, Aggregation]
0x0000: 8000 3046 9a10 b91a 000e 0080 0005 0500
0x0010: 0000
Partner Information TLV (0x02), length 20
System 00:10:18:38:0d:dc (oui Unknown), System Priority 65535,
Key 0, Port 3, Port Priority 255
State Flags [Activity, Aggregation, Synchronization,
Collecting, Distributing]
0x0000: ffff 0010 1838 0ddc 0000 00ff 0003 3d00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
fbl