]> xenbits.xensource.com Git - unikraft/libs/click.git/commitdiff
fromdevice.cc: Update sched related functions
authorStefan Jumarea <stefanjumarea02@gmail.com>
Fri, 8 Sep 2023 12:42:29 +0000 (15:42 +0300)
committerUnikraft <monkey@unikraft.io>
Sat, 9 Sep 2023 12:15:03 +0000 (12:15 +0000)
Update the default sched getter name to match the changes in the
Unikraft core.

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #7

unikraft/fromdevice.cc

index 49fdcffaaaf3787d1aed7e9e2665d463e082b116..92b6ff91e8ac1f8e3102dd3ae5b7abf64e9101e6 100644 (file)
@@ -123,7 +123,7 @@ FromDevice::initialize(ErrorHandler *errh)
        uk_pr_info("FromDevice::initialize %p device %p state %d\n",
                        this, _dev, _dev->_data->state);
        uk_netdev_info_get(_dev, &dinf);
-       rx_conf.s = uk_sched_get_default();
+       rx_conf.s = uk_sched_current();
        rx_conf.a = uk_alloc_get_default();
        rx_conf.callback = click_fromdevice_rx_callback;
        rx_conf.callback_cookie = (void *)(this);