lkml.org 
[lkml]   [2019]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/5] rtnetlink: allow RTM_SETLINK to reference other namespaces
On Wed,  6 Nov 2019 06:39:19 +0100, Jonas Bonn wrote:
> + if (tb[IFLA_TARGET_NETNSID]) {
> + int32_t netnsid = nla_get_s32(tb[IFLA_TARGET_NETNSID]);
> + tgt_net = rtnl_get_net_ns_capable(NETLINK_CB(skb).sk, netnsid);

No comments on merits but you should definitely run this through
checkpatch..

\
 
 \ /
  Last update: 2019-11-07 00:39    [W:0.053 / U:1.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site