generic: 6.12: fix dsa/qca8k build
authorMantas Pucka <mantas@8devices.com>
Fri, 22 Nov 2024 08:07:06 +0000 (10:07 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Tue, 17 Dec 2024 22:28:11 +0000 (23:28 +0100)
Fix dsa/qca8k build on kernel 6.12.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
target/linux/generic/pending-6.12/711-03-net-dsa-qca8k-add-support-for-port_change_master.patch

index 5bdb4a9da4b30a13262d08a363801bf8a90f13df..25c6ae3f78bfb1f9ac6b637db89ecba4c8a3ec4f 100644 (file)
@@ -103,7 +103,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
 +
 +      dsa_switch_for_each_user_port(dp, ds) {
 +              /* Skip if assigned master is not the LAG */
-+              if (dsa_port_to_master(dp) != lag_dev)
++              if (dsa_port_to_conduit(dp) != lag_dev)
 +                      continue;
 +
 +              ret = qca8k_port_change_master(ds, dp->index,
@@ -152,7 +152,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
 -      .port_lag_leave         = qca8k_port_lag_leave,
 +      .port_lag_join          = qca8xxx_port_lag_join,
 +      .port_lag_leave         = qca8xxx_port_lag_leave,
-+      .port_change_master     = qca8xxx_port_change_master,
++      .port_change_conduit    = qca8k_port_change_master,
        .conduit_state_change   = qca8k_conduit_change,
        .connect_tag_protocol   = qca8k_connect_tag_protocol,
  };