Thread (4 messages) 4 messages, 2 authors, 2017-06-10

Re: [PATCH net-next RFC 1/1] net netlink: Add new type NLA_FLAG_BITS

From: David Miller <davem@davemloft.net>
Date: 2017-05-02 19:03:47

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: Sun, 30 Apr 2017 10:28:39 -0400
Generic bitflags attribute content sent to the kernel by user.
With this type the user can either set or unset a flag in the
kernel.
You asked for feedback, here it is :-)

I think this is overengineered.

Just define a u32 for the value, and mask which defines which bits are
legitimate and defined.  Any bit outside of the legitimate mask must
be zero.

Simple.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help