[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <80dd1bc2-80d6-d8fa-6032-d0641ae5d79b@gmail.com>
Date: Mon, 12 Jun 2017 09:00:41 -0600
From: David Ahern <dsahern@...il.com>
To: Jiri Pirko <jiri@...nulli.us>, Jamal Hadi Salim <jhs@...atatu.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
xiyou.wangcong@...il.com, eric.dumazet@...il.com,
simon.horman@...ronome.com, mrv@...atatu.com
Subject: Re: [PATCH net-next v10 1/4] net netlink: Add new type NLA_FLAG_BITS
On 6/12/17 8:14 AM, Jiri Pirko wrote:
>>> The thing is, struct nla_flag_bits is tightly coupled with NLA_FLAG_BITS
>>> enum value. They should be in the same uapi file. That makes sense to me.
>>>
>>
>> Sure - they should be in the same file. But is it uapi/linux/netlink.h?
>
> Might be the netlink-types.h you mentioned above.
>
> ccing DavidA.
>
Just saw this patch set this morning. Few comments:
1. I think nla_bitfield or nla_bitmap is a better name than nla_flag_bits
2. The length should be open ended with the size of the array determined
by nla_len / sizeof(struct nla_bitfield). That allows this to be
extended to an arbitrary large bitfield as needed.
3. IMO since these are nla prefixes and new NLA type they should be in
uapi/linux/netlink.h
Powered by blists - more mailing lists