• Cyrill Gorcunov's avatar
    net: pppoe - introduce net-namespace functionality · a6bcf1c1
    Cyrill Gorcunov authored
    - each net-namespace for pppoe module is having own
      hash table and appropriate locks wich are allocated
      at time of namespace intialization. It requires about
      140 bytes of memory for every new namespace but such
      approach allow us to escape from hash chains growing
      and additional lock contends (especially in SMP environment).
    
    - pppox code allows to create per-namespace sockets for
      PX_PROTO_OE protocol only (since at this moment support
      for pppol2tp net-namespace is not implemented yet).
    Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a6bcf1c1
pppox.c 3.44 KB