mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +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:
@@ -622,7 +622,7 @@ dummy_netdev_get_conn_state(struct dummy_packet_conn *conn)
|
||||
}
|
||||
|
||||
static void
|
||||
netdev_dummy_run(void)
|
||||
netdev_dummy_run(const struct netdev_class *netdev_class OVS_UNUSED)
|
||||
{
|
||||
struct netdev_dummy *dev;
|
||||
|
||||
@@ -636,7 +636,7 @@ netdev_dummy_run(void)
|
||||
}
|
||||
|
||||
static void
|
||||
netdev_dummy_wait(void)
|
||||
netdev_dummy_wait(const struct netdev_class *netdev_class OVS_UNUSED)
|
||||
{
|
||||
struct netdev_dummy *dev;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user