Re: [Patch net-next] net: make neigh tables per netns
From: David Miller <davem@davemloft.net>
Date: 2014-06-25 23:33:50
From: David Miller <davem@davemloft.net>
Date: 2014-06-25 23:33:50
From: Cong Wang <redacted> Date: Mon, 23 Jun 2014 15:09:30 -0700
From: Cong Wang <redacted> Different net namespaces have different devices, routes, neighbours, so their neigh table should be separated as well. This patch makes gloable arp_tbl and nd_tbl etc. be per netns. Also, as we don't support multiple tables per family, there is no point to make tables chained by linked list, they can just be statically compiled. This will eliminate the global neigh_tbl_lock. Cc: "David S. Miller" <davem@davemloft.net> Cc: Patrick McHardy <redacted> Cc: stephen hemminger <stephen@networkplumber.org> Signed-off-by: Cong Wang <redacted> Signed-off-by: Cong Wang <redacted>
Eric and any other networking namespace experts, please review this. Thanks.