Skip to content

Commit 00b981c

Browse files
fixup! add LuaData submodule
1 parent ca0a05c commit 00b981c

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

net/core/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ obj-y := sock.o request_sock.o skbuff.o datagram.o stream.o scm.o \
88

99
obj-$(CONFIG_SYSCTL) += sysctl_net_core.o
1010

11-
CFLAGS_dev.o = -Ilib/lunatik/lua/ -D_KERNEL
12-
CFLAGS_filter.o = -Ilib/lunatik/lua/ -D_KERNEL
11+
CFLAGS_dev.o = -Ilib/lunatik/lua/ -D_KERNEL \
12+
-Ilib/luadata/
13+
CFLAGS_filter.o = -Ilib/lunatik/lua/ -D_KERNEL \
14+
-Ilib/luadata/
1315
obj-y += dev.o ethtool.o dev_addr_lists.o dst.o netevent.o \
1416
neighbour.o rtnetlink.o utils.o link_watch.o filter.o \
1517
sock_diag.o dev_ioctl.o tso.o sock_reuseport.o \

net/core/dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
#include <lua.h>
7373
#include <lauxlib.h>
7474
#include <lualib.h>
75+
#include <luadata.h>
7576
/* #endif CONFIG_XDPLUA */
7677

7778
#include <linux/uaccess.h>
@@ -9893,6 +9894,7 @@ static int __init net_dev_init(void)
98939894
}
98949895

98959896
luaL_openlibs(new_state_cpu->L);
9897+
luaL_requiref(new_state_cpu->L, "data", luaopen_data, 1);
98969898
lua_pop(new_state_cpu->L, 1);
98979899
new_state_cpu->cpu = i;
98989900

net/core/filter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676

7777
/* #ifdef CONFIG_XDPLUA */
7878
#include <lua.h>
79+
#include <luadata.h>
7980
/* #endif CONFIG_XDPLUA */
8081

8182
/**

0 commit comments

Comments
 (0)