mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
test: build the LACP test on the real headers, drop the port_hash test
The LACP test now compiles with the shared harness flags and sdcc_shim.h against the firmware headers, so the copies under test/lacp/shim are gone. test_port_tables already covers the trunk hash seed that test/port_hash checked against its own register copies. lacp_in() declares its locals at the top, which the stricter host build needs.
This commit is contained in:
1 parent
1bfe632174
commit
4a14f50932
14 files changed
+12
-243
No files matched your search
+4
-2
@@ -270,6 +270,8 @@ void lacp_send(uint8_t port) __banked
|
||||
*/
|
||||
void lacp_in(void) __banked
|
||||
{
|
||||
__xdata uint8_t port, lag;
|
||||
|
||||
lacp_rxbody = TRAP_RX_BODY();
|
||||
if (uip_len < lacp_rxbody + sizeof(struct lacpdu_in)) {
|
||||
uip_len = 0;
|
||||
@@ -284,12 +286,12 @@ void lacp_in(void) __banked
|
||||
/* Per rtl837x_common.h, pmask carries a 4-bit port number on RX
|
||||
* (hardware-verified on RTL8373: per-port rx counters track the actual
|
||||
* ingress port through full LACP convergence). */
|
||||
__xdata uint8_t port = ((uint8_t)HTONS(LACP_H->rtl_tag.pmask)) & 0x0f;
|
||||
port = ((uint8_t)HTONS(LACP_H->rtl_tag.pmask)) & 0x0f;
|
||||
if (port < machine.min_port || port > machine.max_port)
|
||||
return;
|
||||
|
||||
/* Only ports assigned to a LACP-mode LAG participate in the protocol. */
|
||||
__xdata uint8_t lag = lacp_port_lag[port];
|
||||
lag = lacp_port_lag[port];
|
||||
if (lag == LACP_LAG_NONE)
|
||||
return;
|
||||
if (lacp_sys_eq(LACP_I->actor.sys, uip_ethaddr.addr))
|
||||
|
||||
Reference in new issue
Block a user