|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT/LIBLWIP PATCH 2/3] lib/lwip: Fetch features supported on the netdev
On 07.10.19 11:55, Sharan Santhanam wrote: Signed-off-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> --- uknetdev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/uknetdev.c b/uknetdev.c index 47d2fb1..46b5f40 100644 --- a/uknetdev.c +++ b/uknetdev.c @@ -62,6 +62,10 @@ #define UKNETDEV_NETIF_NAME0 'e' #define UKNETDEV_NETIF_NAME1 'n'+struct lwip_netdev_data { I would prefer if this check would be done already during compile time. Maybe you could use CONFIG_UK_NETDEV_SCRATCH_SIZE instead of sizeof() for the comparison and use #error to stop the build when wrongly configured. + + lwip_data = (struct lwip_netdev_data *)dev->scratch_pad;LWIP_ASSERT("uknetdev needs an input callback (netif_input or tcpip_input)", _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |