mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
lacp: keep comments to the frame layout
The comments repeated the documentation, described tests or explained the code to its author. What stays describes the LACPDU structures. The timer constants are decimal, in units of the LACP timer.
This commit is contained in:
1 parent
7e90f6a126
commit
6cd1f683bb
8 files changed
+52
-261
No files matched your search
+1
-3
@@ -540,8 +540,6 @@ void parse_lag(void)
|
||||
return;
|
||||
}
|
||||
|
||||
/* "lag <n> lacp [port]..." - run LACP on this LAG with the given candidate
|
||||
* ports; "lag <n> lacp off" (or no ports) removes the LAG from LACP. */
|
||||
uint8_t w = 2;
|
||||
__xdata uint8_t lacp_mode = 0;
|
||||
if (cmd_words_len > 2 && cmd_compare(2, "lacp")) {
|
||||
@@ -560,7 +558,7 @@ void parse_lag(void)
|
||||
members |= ((uint16_t)1) << atoi_results_u8;
|
||||
}
|
||||
if (lacp_mode) {
|
||||
lacp_lag_set(group, members); /* 0 ports also valid: removes the LAG */
|
||||
lacp_lag_set(group, members);
|
||||
} else {
|
||||
lacp_lag_set(group, 0);
|
||||
port_lag_members_set(group, members);
|
||||
|
||||
Reference in new issue
Block a user