kernel: 6.1: fix swconfig not working
[openwrt/openwrt.git] / target / linux / generic / files / drivers / net / phy / swconfig.c
index a734e576080aa6f15701c201e06d5ecfa062420d..5fa2b147c6fca4e8fce0b7b296f42fb57c22bd9f 100644 (file)
@@ -1054,6 +1054,9 @@ static struct genl_family switch_fam = {
        .module = THIS_MODULE,
        .ops = swconfig_ops,
        .n_ops = ARRAY_SIZE(swconfig_ops),
+#if LINUX_VERSION_CODE > KERNEL_VERSION(6,0,0)
+       .resv_start_op = SWITCH_CMD_SET_VLAN + 1,
+#endif
 };
 
 #ifdef CONFIG_OF