Herbert Xu wrote:
> On Fri, Jan 27, 2006 at 08:05:23AM -0500, jamal wrote:
> 
>>+extern u32 sysctl_xfrm_aevent_on;
> 
> 
> I'd prefer for this to be automatically determined.  Indeed, this is
> a generic netlink problem.  We want to be easily determine at run time
> whether there are netlink sockets subscribed to a given multicast group.
> 
> Here is an idea, in addition to mc_list, we keep a bit mask of the groups
> that exist on mc_list.  This bit mask can then be used to quickly determine
> if a netlink skb needs to be generated or not.
> 
> This mask would be updated at bind(2) time.  Updating this is O(n) where
> n is the number of members on mc_list.  This should be fine since
> netlink_broadcast itself which occurs much more often is also O(n).

I already have a patch for this for ctnetlink. I'll try to update it
and post it sometime this weekend.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to