]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: add nl_set_extack_cookie_u64()
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 Aug 2018 08:48:13 +0000 (10:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 10:20:07 +0000 (11:20 +0100)
commit7c36741d60d218a9ba49e2339123e426c6142b46
tree099bea79832948f202936299d1159b0f4d67be61
parentafd73cedb07c0fd184ce90649eb548b64e9fd5d2
netlink: add nl_set_extack_cookie_u64()

Add a helper function nl_set_extack_cookie_u64() to use a u64 as
the netlink extended ACK cookie, to avoid having to open-code it
in any users of the cookie.

A u64 should be sufficient for most subsystems though we allow
for up to 20 bytes right now. This also matches the cookies in
nl80211 where I intend to use this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/netlink.h