The NetBSD Project

CVS log for src/sys/net/lagg/if_lagg_lacp.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net / lagg

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Sun Apr 10 09:50:46 2022 UTC (9 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

fix various typos in comments and output/log messages.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 4 06:12:27 2022 UTC (9 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.23: +4 -2 lines
Diff to previous 1.23 (colored)

Fix missing m_reset_rcvif for allocated mbuf

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 4 06:10:00 2022 UTC (9 months, 3 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.22: +4 -9 lines
Diff to previous 1.22 (colored)

Move input processing of lagg(4) before ether_input
to get rid of dependence.

This implementation is similar with that of bridge(4).

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 1 07:26:51 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.21: +4 -7 lines
Diff to previous 1.21 (colored)

lagg(4): reimplement add and delete port

The IFNET_LOCK for the adding or deleting port became to
be held the whole time while the ifnet of the port is changed.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 31 07:59:05 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

rename lagg_enqueue to lagg_output

NFC

Revision 1.20 / (download) - annotate - [select for diffs], Thu Mar 31 03:15:15 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Use addlog(4) for putting 2 messages to one line

Revision 1.19 / (download) - annotate - [select for diffs], Thu Mar 31 03:04:04 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.18: +9 -3 lines
Diff to previous 1.18 (colored)

update state of aggregator on multi-speed changing

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 31 02:04:50 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.17: +92 -7 lines
Diff to previous 1.17 (colored)

handle LACPDU and MarkerDU in thread context

Those handler move from softint to thread context to
improve throughput in high load, because they hold LACP_LOCK.

pointed out by k-goda@IIJ

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 31 02:00:27 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.16: +9 -18 lines
Diff to previous 1.16 (colored)

fix coding style

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 31 01:59:05 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

Added length check for safety

pointed out by k-goda@IIJ

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 31 01:40:34 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Added missing kmem_free

pointed out by k-goda@IIJ

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 31 01:36:47 2022 UTC (9 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

Added a kernel option to run LACP on a half duplex interface

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 16 10:45:17 2022 UTC (12 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

lagg: remove stray semicolon

No binary change.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 12 08:23:53 2022 UTC (12 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.11: +19 -9 lines
Diff to previous 1.11 (colored)

Fix to call lacp_linkstate with IFNET_LOCK held

Network stack calls lacp_linkstate through lagg_port_ioctl when
doing "ifconfig up" or "ifconfig down" to an interface that is
a member of lagg(4). And IFNET_LOCK in the member interface
is held while the ioctl.
Therefore, lacp_linkstate is renamed to
lacp_linkstate_ifnet_locked, and always called with IFNET_LOCK
held. It avoids locking agains myself.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 6 12:09:42 2022 UTC (12 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

lagg(4): Take lock as required around if ioctl.

Note: There are some calls to SIOCADDMULTI/SIOCDELMULTI that take the
lock when they don't need it, but it's not clear it's harmful either
unless they come via a caller that holds softnet_lock.

candidate fix for
https://mail-index.netbsd.org/current-users/2021/12/31/msg041876.html

ok yamaguchi

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 31 14:24:51 2021 UTC (12 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

sys: Use if_ioctl wrapper function.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 30 01:17:02 2021 UTC (13 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

Move net/agr/ieee8023_slowprotocols.h to net/ether_slowprotocols.h

Definitions related to slowprotocols are duplicated between
agr/ieee8023ad_slowprotocols.h and lagg/if_lagg_lacp.h
Therefore, the contents are moved to added file.

Note: currently, there are just LACP and Marker protocol,
however slowprotocols is independent of them.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 16 04:48:43 2021 UTC (14 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.7: +8 -2 lines
Diff to previous 1.7 (colored)

Added a kernel option to set SYNC bit of LACP
while the lagg interface is in STANDBY state

Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 16 04:01:11 2021 UTC (14 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.6: +19 -5 lines
Diff to previous 1.6 (colored)

Set SYNC bit of LACPDU when the interface is on STANDBY state

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 19 07:52:33 2021 UTC (15 months, 1 week ago) by yamaguchi
Branch: MAIN
Changes since 1.5: +19 -7 lines
Diff to previous 1.5 (colored)

lagg: support l2tp(4) aggregation

- Accept "ifconfig lagg* laggport l2tp*"
- Set promiscuous mode when the added interface is l2tp*
- check IFF_UP in addition to IFF_RUNNING on
  SIOCSIFFLAGS to a child interface.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 2 22:14:32 2021 UTC (15 months, 3 weeks ago) by mrg
Branch: MAIN
Changes since 1.4: +3 -5 lines
Diff to previous 1.4 (colored)

avoid set-but-unused-variable warnings.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 30 04:23:30 2021 UTC (15 months, 4 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.3: +11 -24 lines
Diff to previous 1.3 (colored)

Make a link-layer address of lagg(4) configurable by ifconfig(8)

lagg(4) uses a configured link-layer (MAC) address instead
of a random MAC address generated on creating.
The configured MAC address is copied to all child interface
and used for a system id of LACP.

Revision 1.2.6.3 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:41 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.2.6.2: +6 -2 lines
Diff to previous 1.2.6.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 30 06:39:47 2021 UTC (18 months, 4 weeks ago) by yamaguchi
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.2: +6 -2 lines
Diff to previous 1.2 (colored)

lagg: fix an uninitialize variable

pointed out by tnn@n.o., thanks.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:35 2021 UTC (19 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.2.6.1: +2621 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored)

Sync w/ HEAD.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Mon May 31 22:15:21 2021 UTC (19 months, 4 weeks ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.2.2.1: +2621 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.2.6.1, Tue May 18 11:02:58 2021 UTC (20 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.2: +0 -2621 lines
FILE REMOVED

file if_lagg_lacp.c was added on branch thorpej-i2c-spi-conf on 2021-06-17 04:46:35 +0000

Revision 1.2.2.1, Tue May 18 11:02:58 2021 UTC (20 months, 1 week ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.2: +0 -2621 lines
FILE REMOVED

file if_lagg_lacp.c was added on branch cjep_staticlib_x on 2021-05-31 22:15:21 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 18 11:02:58 2021 UTC (20 months, 1 week ago) by hannken
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Make this compile without DIAGNOSTIC.

Revision 1.1 / (download) - annotate - [select for diffs], Mon May 17 04:07:43 2021 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN

Add a new link-aggregation pseudo interface named lagg(4)

 - FreeBSD's lagg(4) based implementation
 - MP-safe and MP-scalable

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>