Skip to content

Commit

Permalink
fixup! Add core version of XDPLua
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorNogueiraRio committed Aug 16, 2019
1 parent 3c1f2a9 commit 7b9fa04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ static const struct nla_policy ifla_xdp_policy[IFLA_XDP_MAX + 1] = {
[IFLA_XDP_ATTACHED] = { .type = NLA_U8 },
[IFLA_XDP_FLAGS] = { .type = NLA_U32 },
[IFLA_XDP_PROG_ID] = { .type = NLA_U32 },
[IFLA_XDP_LUA_PROG] = { .type = NLA_STRING, .len = 4096 },
[IFLA_XDP_LUA_PROG] = { .type = NLA_STRING, .len = 8192 },
[IFLA_XDP_LUA_FUNC] = { .type = NLA_STRING, .len = 256 },
};

Expand Down
4 changes: 2 additions & 2 deletions tools/lib/bpf/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int bpf_set_link_xdp_lua_prog(int ifindex, char *lua_prog) {
struct {
struct nlmsghdr nh;
struct ifinfomsg ifinfo;
char attrbuf[4096 + 256];
char attrbuf[8192];
} req;
__u32 nl_pid;

Expand Down Expand Up @@ -248,7 +248,7 @@ int bpf_set_link_xdp_lua_func(int ifindex, char *lua_funcname)
struct {
struct nlmsghdr nh;
struct ifinfomsg ifinfo;
char attrbuf[4096 + 256];
char attrbuf[256];
} req;
__u32 nl_pid;

Expand Down

0 comments on commit 7b9fa04

Please sign in to comment.