]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Adapt forced polling mode to uknetdev flag rename RELEASE-0.12.0
authorMarco Schlumpp <marco@unikraft.io>
Sun, 5 Feb 2023 10:33:29 +0000 (11:33 +0100)
committerUnikraft <monkey@unikraft.io>
Sun, 5 Feb 2023 11:49:29 +0000 (11:49 +0000)
The rxq interrupt flag was renamed in unikraft some time ago [1]. This
adapts liblwip to this change.

[1]: unikraft/unikraft@bf6ebd2b49728278b6f19ef6ef060d86ca166675

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #30

uknetdev.c

index ee6284c728eea92e61ae103f9ea2e49133f2c7f1..a75ff11514037559cd274d3f582139d773ffafc9 100644 (file)
@@ -477,7 +477,7 @@ err_t uknetdev_init(struct netif *nf)
                return ERR_IF;
 #if CONFIG_LWIP_UKNETDEV_POLLONLY
        /* Unset receive interrupt support: We force polling mode */
-       lwip_data->dev_info.features &= ~UK_FEATURE_RXQ_INTR_AVAILABLE;
+       lwip_data->dev_info.features &= ~UK_NETDEV_F_RXQ_INTR;
 #endif /* CONFIG_LWIP_UKNETDEV_POLLONLY */
        lwip_data->pkt_a = a;