]> git.baikalelectronics.ru Git - kernel.git/commit
netns: embed ip6_dst_ops directly
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 29 Aug 2009 01:34:49 +0000 (01:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2009 00:40:31 +0000 (17:40 -0700)
commit65121bf872ac6736b81085dbc6c3d4b728ed074f
treef5c688c0cb5292143478249f807c4b2372f69dfd
parenta451a7b6760daaece03ca20c8cbb62b714e42db1
netns: embed ip6_dst_ops directly

struct net::ipv6.ip6_dst_ops is separatedly dynamically allocated,
but there is no fundamental reason for it. Embed it directly into
struct netns_ipv6.

For that:
* move struct dst_ops into separate header to fix circular dependencies
I honestly tried not to, it's pretty impossible to do other way
* drop dynamical allocation, allocate together with netns

For a change, remove struct dst_ops::dst_net, it's deducible
by using container_of() given dst_ops pointer.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
include/net/dst_ops.h [new file with mode: 0644]
include/net/netns/ipv6.h
net/ipv6/route.c