From: Ying Xue Date: Fri, 9 Jan 2015 07:27:08 +0000 (+0800) Subject: tipc: make tipc socket support net namespace X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~254^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e05b31f4bf89;p=pandora-kernel.git tipc: make tipc socket support net namespace Now tipc socket table is statically allocated as a global variable. Through it, we can look up one socket instance with port ID, insert a new socket instance to the table, and delete a socket from the table. But when tipc supports net namespace, each namespace must own its specific socket table. So the global variable of socket table must be redefined in tipc_net structure. As a concequence, a new socket table will be allocated when a new namespace is created, and a socket table will be deallocated when namespace is destroyed. Signed-off-by: Ying Xue Tested-by: Tero Aho Reviewed-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed