network/netdev: do not try to update if not supported

Some netdevs cannot update there properties after created.
Let's skip requests in that case.
This commit is contained in:
Yu Watanabe
2024-11-14 10:17:19 +09:00
parent f264cd2037
commit 422b7c857c
9 changed files with 32 additions and 1 deletions
+4
View File
@@ -199,6 +199,10 @@ typedef struct NetDevVTable {
/* When assigning ifindex to the netdev, skip to check if the netdev kind matches. */
bool skip_netdev_kind_check;
/* Provides if the netdev can be updated, that is, whether RTM_NEWLINK with existing ifindex is supported or not.
* If this is true, the netdev does not support updating. */
bool keep_existing;
} NetDevVTable;
extern const NetDevVTable * const netdev_vtable[_NETDEV_KIND_MAX];