Skip to content

Commit 43dbc6d

Browse files
0xharshalhauke
authored andcommitted
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: openwrt#19571 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 75fe6b2 commit 43dbc6d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void rtl930x_pie_rule_dump_raw(u32 r[]);
211211
void rtl931x_print_matrix(void);
212212

213213
void rtldsa_930x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
214-
void rtl931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
214+
void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action);
215215

216216
void rtl931x_sw_init(struct rtl838x_switch_priv *priv);
217217

target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void rtl931x_print_matrix(void)
328328
rtl_table_release(r);
329329
}
330330

331-
void rtl931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action)
331+
void rtldsa_931x_set_receive_management_action(int port, rma_ctrl_t type, action_type_t action)
332332
{
333333
u32 value = 0;
334334

@@ -1587,4 +1587,5 @@ const struct rtl838x_reg rtl931x_reg = {
15871587
.led_init = rtldsa_931x_led_init,
15881588
.enable_learning = rtldsa_931x_enable_learning,
15891589
.enable_flood = rtldsa_931x_enable_flood,
1590+
.set_receive_management_action = rtldsa_931x_set_receive_management_action,
15901591
};

0 commit comments

Comments
 (0)