mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
realtek: rtl931x: Register support for trapping management frames
Driver needs to configure management frame actions To support LLDP, EAPOL or MSTP, which needs to be trapped to the CPU instead of being forwarded. The function to implement the various management frame actions was already present but not yet registered correctly. Signed-off-by: Harshal Gohel <hg@simonwunderlich.de> Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de> Link: https://github.com/openwrt/openwrt/pull/19571 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
75fe6b2d0b
commit
43dbc6d4d6
2 changed files with 3 additions and 2 deletions
|
|
@ -211,7 +211,7 @@ void rtl930x_pie_rule_dump_raw(u32 r[]);
|
|||
void rtl931x_print_matrix(void);
|
||||
|
||||
void rtldsa_930x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
|
||||
void rtl931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
|
||||
void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
|
||||
|
||||
void rtl931x_sw_init(struct rtl838x_switch_priv *priv);
|
||||
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ void rtl931x_print_matrix(void)
|
|||
rtl_table_release(r);
|
||||
}
|
||||
|
||||
void rtl931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action)
|
||||
void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action)
|
||||
{
|
||||
u32 value = 0;
|
||||
|
||||
|
|
@ -1587,4 +1587,5 @@ const struct rtl838x_reg rtl931x_reg = {
|
|||
.led_init = rtldsa_931x_led_init,
|
||||
.enable_learning = rtldsa_931x_enable_learning,
|
||||
.enable_flood = rtldsa_931x_enable_flood,
|
||||
.set_receive_management_action = rtldsa_931x_set_receive_management_action,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue