mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-09-02 15:02:51 +08:00
stp: keep the FDB update's counters to the function that uses them
Both only ever served stp_fdb_update(), so they belong there. Internal RAM has room for them on this branch and on the one that carries the aggregation module too.
This commit is contained in:
+3
-2
@@ -24,8 +24,6 @@ extern __code struct machine machine;
|
|||||||
extern __xdata uint8_t sfr_data[4];
|
extern __xdata uint8_t sfr_data[4];
|
||||||
extern __xdata struct machine_runtime machine_detected;
|
extern __xdata struct machine_runtime machine_detected;
|
||||||
|
|
||||||
__xdata uint16_t stp_fdb_vid;
|
|
||||||
__xdata uint8_t stp_fdb_i;
|
|
||||||
|
|
||||||
extern __xdata struct uip_eth_addr uip_ethaddr;
|
extern __xdata struct uip_eth_addr uip_ethaddr;
|
||||||
|
|
||||||
@@ -691,6 +689,9 @@ void stp_defaults(void) __banked
|
|||||||
*/
|
*/
|
||||||
static void stp_fdb_update(__xdata uint16_t pmask)
|
static void stp_fdb_update(__xdata uint16_t pmask)
|
||||||
{
|
{
|
||||||
|
uint16_t stp_fdb_vid;
|
||||||
|
uint8_t stp_fdb_i;
|
||||||
|
|
||||||
/* Unlike LACPDUs (always untagged, so per-PVID entries suffice), BPDUs
|
/* Unlike LACPDUs (always untagged, so per-PVID entries suffice), BPDUs
|
||||||
* can arrive VLAN-tagged and then classify into the tag's VID - cover
|
* can arrive VLAN-tagged and then classify into the tag's VID - cover
|
||||||
* every VLAN that exists in the VLAN table, plus every port's PVID for
|
* every VLAN that exists in the VLAN table, plus every port's PVID for
|
||||||
|
|||||||
Reference in New Issue
Block a user