• Ying Xue's avatar
    tipc: name tipc name table support net namespace · 4ac1c8d0
    Ying Xue authored
    TIPC name table is used to store the mapping relationship between
    TIPC service name and socket port ID. When tipc supports namespace,
    it allows users to publish service names only owned by a certain
    namespace. Therefore, every namespace must have its private name
    table to prevent service names published to one namespace from being
    contaminated by other service names in another namespace. Therefore,
    The name table global variable (ie, nametbl) and its lock must be
    moved to tipc_net structure, and a parameter of namespace must be
    added for necessary functions so that they can obtain name table
    variable defined in tipc_net structure.
    Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
    Tested-by: default avatarTero Aho <Tero.Aho@coriant.com>
    Reviewed-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4ac1c8d0
config.c 9.99 KB