diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index ba2c365b108c63..4f1f9d959b5434 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -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 }, }; diff --git a/tools/lib/bpf/netlink.c b/tools/lib/bpf/netlink.c index 95799b2082100f..8e49a1b036126f 100644 --- a/tools/lib/bpf/netlink.c +++ b/tools/lib/bpf/netlink.c @@ -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; @@ -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;