]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl931x: Register support for trapping management frames
authorHarshal Gohel <hg@simonwunderlich.de>
Fri, 8 Aug 2025 15:31:03 +0000 (17:31 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 26 Aug 2025 21:44:08 +0000 (23:44 +0200)
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>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl83xx.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c

index 6d7f154129a9599f53ebbf4c14c8df731ff468a5..88aee748c6aa7162bef3f6bad21c0ddfdf38825a 100644 (file)
@@ -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);
 
index 226b7ce5d3de6310b431708ebeca7e447169b322..cac09081ef29e87707ae26cc919cef9d1319e1b8 100644 (file)
@@ -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,
 };