mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
port: add a bounded single-port L2 flush
port_l2_forget() flushes the whole table and polls the flush engine without a bound. A topology change only needs to age out the port that changed, and the STP tick cannot afford an unbounded poll: add port_l2_forget_port() with a single-port mask and the same bounded wait the static-entry helper uses.
This commit is contained in:
@@ -55,6 +55,7 @@ void vlan_setup(void) __banked;
|
||||
void port_pvid_set(uint8_t port, __xdata uint16_t pvid) __banked;
|
||||
uint16_t port_pvid_get(uint8_t port) __banked;
|
||||
void port_l2mc_set(uint8_t mac_last, __xdata uint16_t vid, __xdata uint16_t pmask) __banked;
|
||||
void port_l2_forget_port(uint8_t port) __banked;
|
||||
void vlan_create(void) __banked;
|
||||
void vlan_delete(uint16_t vlan) __banked;
|
||||
void vlan_dump(void) __banked;
|
||||
|
||||
Reference in New Issue
Block a user