mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev: Pass 'netdev_class' to ->run() and ->wait().
This will allow run() and wait() methods to be shared between different classes and still perform class-specific work. Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -146,7 +146,7 @@ static void ifr_set_flags(struct ifreq *, int flags);
|
||||
static int af_link_ioctl(unsigned long command, const void *arg);
|
||||
#endif
|
||||
|
||||
static void netdev_bsd_run(void);
|
||||
static void netdev_bsd_run(const struct netdev_class *);
|
||||
static int netdev_bsd_get_mtu(const struct netdev *netdev_, int *mtup);
|
||||
|
||||
static bool
|
||||
@@ -180,7 +180,7 @@ netdev_get_kernel_name(const struct netdev *netdev)
|
||||
* interface status changes, and eventually calls all the user callbacks.
|
||||
*/
|
||||
static void
|
||||
netdev_bsd_run(void)
|
||||
netdev_bsd_run(const struct netdev_class *netdev_class OVS_UNUSED)
|
||||
{
|
||||
rtbsd_notifier_run();
|
||||
}
|
||||
@@ -190,7 +190,7 @@ netdev_bsd_run(void)
|
||||
* be called.
|
||||
*/
|
||||
static void
|
||||
netdev_bsd_wait(void)
|
||||
netdev_bsd_wait(const struct netdev_class *netdev_class OVS_UNUSED)
|
||||
{
|
||||
rtbsd_notifier_wait();
|
||||
}
|
||||
|
Reference in New Issue
Block a user