[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230120192059.66d058bf@kernel.org>
Date: Fri, 20 Jan 2023 19:20:59 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Lorenzo Bianconi <lorenzo@...nel.org>
Cc: bpf@...r.kernel.org, netdev@...r.kernel.org, ast@...nel.org,
daniel@...earbox.net, andrii@...nel.org, davem@...emloft.net,
hawk@...nel.org, pabeni@...hat.com, edumazet@...gle.com,
toke@...hat.com, memxor@...il.com, alardam@...il.com,
saeedm@...dia.com, anthony.l.nguyen@...el.com, gospo@...adcom.com,
vladimir.oltean@....com, nbd@....name, john@...ozen.org,
leon@...nel.org, simon.horman@...igine.com, aelior@...vell.com,
christophe.jaillet@...adoo.fr, ecree.xilinx@...il.com,
mst@...hat.com, bjorn@...nel.org, magnus.karlsson@...el.com,
maciej.fijalkowski@...el.com, intel-wired-lan@...ts.osuosl.org,
lorenzo.bianconi@...hat.com, niklas.soderlund@...igine.com
Subject: Re: [PATCH bpf-next 5/7] libbpf: add API to get XDP/XSK supported
features
On Fri, 20 Jan 2023 18:16:54 +0100 Lorenzo Bianconi wrote:
> +static int libbpf_netlink_resolve_genl_family_id(const char *name,
> + __u16 len, __u16 *id)
> +{
> + struct libbpf_nla_req req = {
> + .nh.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN),
> + .nh.nlmsg_type = GENL_ID_CTRL,
> + .nh.nlmsg_flags = NLM_F_REQUEST,
> + .gnl.cmd = CTRL_CMD_GETFAMILY,
> + .gnl.version = 1,
nlctrl is version 2, shouldn't matter in practice
Powered by blists - more mailing lists