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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user