diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-06 21:25:09 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-12 05:41:39 +0100 |
commit | 562729d744257e0a534bb43a342f213725dbcfe0 (patch) | |
tree | 38fcf125e0a1b08a7126abe1c583228a4fb4f306 /src/network/netdev/netdev.h | |
parent | meson: Drop meson version compare for fuzz test (diff) | |
download | systemd-562729d744257e0a534bb43a342f213725dbcfe0.tar.xz systemd-562729d744257e0a534bb43a342f213725dbcfe0.zip |
network/netdev: introduce .is_ready_to_create() entry in netdev vtable
Diffstat (limited to 'src/network/netdev/netdev.h')
-rw-r--r-- | src/network/netdev/netdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/netdev/netdev.h b/src/network/netdev/netdev.h index c7262f550a..b631e8e23f 100644 --- a/src/network/netdev/netdev.h +++ b/src/network/netdev/netdev.h @@ -153,6 +153,9 @@ typedef struct NetDevVTable { /* specifies if netdev is independent, or a master device or a stacked device */ NetDevCreateType create_type; + /* This is used for stacked netdev. Return true when the underlying link is ready. */ + int (*is_ready_to_create)(NetDev *netdev, Link *link); + /* create netdev, if not done via rtnl */ int (*create)(NetDev *netdev); |