|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/LIBLWIP PATCH 1/3] lib/lwip: Reserve per netdev space for lwip
Signed-off-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
---
Config.uk | 7 +++++++
Makefile.uk | 1 +
2 files changed, 8 insertions(+)
diff --git a/Config.uk b/Config.uk
index 92df4d3..394ec62 100644
--- a/Config.uk
+++ b/Config.uk
@@ -22,6 +22,13 @@ config LWIP_UKNETDEV
In case threaded mode is selected and the underlying device
driver does not support receive interrupts the network
interfaces have to be polled manually (uknetdev_poll()).
+
+config LWIP_UKNETDEV_SCRATCH
+ int
+ default 24
+ help
+ The network stack reserves space in the uknetdev device for its
+ use.
endmenu
config LWIP_AUTOIFACE
diff --git a/Makefile.uk b/Makefile.uk
index 0e72336..44fd639 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -59,6 +59,7 @@ LIBLWIP_EXTRACTED=$(LIBLWIP_ORIGIN)/$(LIBLWIP_ZIPNAME)/src
################################################################################
CINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/include
-I$(LIBLWIP_EXTRACTED)/include
CXXINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/include
-I$(LIBLWIP_EXTRACTED)/include
+$(eval $(call uknetdev_scratch_mem,liblwip,$(CONFIG_LWIP_UKNETDEV_SCRATCH)))
################################################################################
# Library flags
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |