1. 02 Jan, 2022 2 commits
    • Tony Lu's avatar
      net/smc: Add netlink net namespace support · 79d39fc5
      Tony Lu authored
      This adds net namespace ID to diag of linkgroup, helps us to distinguish
      different namespaces, and net_cookie is unique in the whole system.
      Signed-off-by: default avatarTony Lu <tonylu@linux.alibaba.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      79d39fc5
    • Tony Lu's avatar
      net/smc: Introduce net namespace support for linkgroup · 0237a3a6
      Tony Lu authored
      Currently, rdma device supports exclusive net namespace isolation,
      however linkgroup doesn't know and support ibdev net namespace.
      Applications in the containers don't want to share the nics if we
      enabled rdma exclusive mode. Every net namespaces should have their own
      linkgroups.
      
      This patch introduce a new field net for linkgroup, which is standing
      for the ibdev net namespace in the linkgroup. The net in linkgroup is
      initialized with the net namespace of link's ibdev. It compares the net
      of linkgroup and sock or ibdev before choose it, if no matched, create
      new one in current net namespace. If rdma net namespace exclusive mode
      is not enabled, it behaves as before.
      Signed-off-by: default avatarTony Lu <tonylu@linux.alibaba.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0237a3a6
  2. 31 Dec, 2021 38 commits