File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ obj-y := sock.o request_sock.o skbuff.o datagram.o stream.o scm.o \
88
99obj-$(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/
1315obj-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 \
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 7676
7777/* #ifdef CONFIG_XDPLUA */
7878#include <lua.h>
79+ #include <luadata.h>
7980/* #endif CONFIG_XDPLUA */
8081
8182/**
You can’t perform that action at this time.
0 commit comments