mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
lacp: drop the unused long timeout and an unrelated pvid hunk
This commit is contained in:
1 parent
2e6425f5e6
commit
64efd3fb9f
2 files changed
+1
-3
No files matched your search
+1
-2
@@ -2000,9 +2000,8 @@ void cmd_parser(void) __banked
|
|||||||
} else if (cmd_compare(0, "pvid")) {
|
} else if (cmd_compare(0, "pvid")) {
|
||||||
if (cmd_words_len == 3 && cmd_parse_port_separator(cmd_words_b[1]) != 0
|
if (cmd_words_len == 3 && cmd_parse_port_separator(cmd_words_b[1]) != 0
|
||||||
&& atoi_short(cmd_words_b[2]) && atoi_results_short && atoi_results_short <= 4094)
|
&& atoi_short(cmd_words_b[2]) && atoi_results_short && atoi_results_short <= 4094)
|
||||||
{
|
|
||||||
port_pvid_set(atoi_results_u8, atoi_results_short);
|
port_pvid_set(atoi_results_u8, atoi_results_short);
|
||||||
} else {
|
else {
|
||||||
cmd_error("pvid <port> <1-4094>\n");
|
cmd_error("pvid <port> <1-4094>\n");
|
||||||
}
|
}
|
||||||
} else if (cmd_compare(0, "vlan")) {
|
} else if (cmd_compare(0, "vlan")) {
|
||||||
|
|||||||
@@ -96,7 +96,6 @@ mismatch should be rejected or applied to the whole group.
|
|||||||
#define LACP_FAST_PERIODIC 0x0032 /* fast TX 1 s; partner expires at 3 s */
|
#define LACP_FAST_PERIODIC 0x0032 /* fast TX 1 s; partner expires at 3 s */
|
||||||
#define LACP_SLOW_PERIODIC 0x05dc /* slow TX 30 s; partner expires at 90 s */
|
#define LACP_SLOW_PERIODIC 0x05dc /* slow TX 30 s; partner expires at 90 s */
|
||||||
#define LACP_SHORT_TIMEOUT 0x00c8 /* silent partner dropped after 4 s (802.3ad: 3 s) */
|
#define LACP_SHORT_TIMEOUT 0x00c8 /* silent partner dropped after 4 s (802.3ad: 3 s) */
|
||||||
#define LACP_LONG_TIMEOUT 0x1770 /* long-timeout variant, after 120 s (802.3ad: 90 s) */
|
|
||||||
```
|
```
|
||||||
|
|
||||||
One unit is one step of the LACP timers, taken every four system ticks, so 50
|
One unit is one step of the LACP timers, taken every four system ticks, so 50
|
||||||
|
|||||||
Reference in new issue
Block a user