Re: [PATCH 01/20] net: NETDEV_UNREGISTER_PERNET -> NETDEV_UNREGISTER_BATCH

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Monday, November 30, 2009 - 12:00 pm

Octavian Purdila <opurdila@ixiacom.com> writes:


No it does not.  For the route cache flush we have already done the delayed
invalidate per namespace.  So we only need to walk the route cache once and
simply remove the entries that have been invalidated.

For other cases if we really need it, I pass in the first entry of the
unregistration list so we can recover the list if needed.

The implication is that namespaces are not what is important when batching
so it doesn't make sense to turn our list into a pretzel providing information
that is not needed.


The case I am working on for this patchset is batching of the destruction of
devices across namespace cleanup.  This change reduces my total number of
walks of the route cache from many down to one.

Eric

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 07/20] net: Simplify the bond drivers pernet operat ..., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 08/20] net: Simplify vlan pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 09/20] net: Simplify af_key pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 10/20] net: Simplify conntrack_proto_dccp pernet op ..., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 11/20] net: Simplify conntrack_proto_gre pernet ope ..., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 12/20] net: Simplify ppp_generic pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 13/20] net: Simplify pppoe pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 14/20] net: Simplify pppol2tp pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 15/20] net: Simplify phonet pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 16/20] net: Simplify ip_gre pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 17/20] net: Simplify ipip pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 18/20] net: Simplify ip6_tunnel pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 19/20] net: Simplify ipip6 aka sit pernet operations., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
[PATCH 20/20] net: remove [un]register_pernet_gen_... and ..., Eric W. Biederman, (Sun Nov 29, 6:46 pm)
Re: [PATCH 01/20] net: NETDEV_UNREGISTER_PERNET -> NETDEV_ ..., Eric W. Biederman, (Mon Nov 30, 12:00 pm)