forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/ipvlan/ipvlan_main.c
....@@ -745,7 +745,8 @@
745745
746746 write_pnet(&port->pnet, newnet);
747747
748
- ipvlan_migrate_l3s_hook(oldnet, newnet);
748
+ if (port->mode == IPVLAN_MODE_L3S)
749
+ ipvlan_migrate_l3s_hook(oldnet, newnet);
749750 break;
750751 }
751752 case NETDEV_UNREGISTER: