Search Linux Wireless

Re: [PATCH 04/13 v2] o11s: added mesh.h, mesh function and data structures definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2008-02-22 at 17:23 +0100, Johannes Berg wrote:
> I don't think I fully understand that. The mesh path points to a sta
> structure, so when that sta is removed, the corresponding mesh path must
> also be deleted. I think I need to look closer at where that is done to
> understand how it could be substituted.

In sta_info_free() we call mesh_plink_deactivate(sta), which calls
mesh_path_flush_by_nexthop(). There is where you could substitute the
mesh path (copy it with next_hop pointing to NULL, substitute pointer,
rcu_synchronize()). However there is not much to gain. Since mesh paths
are freed if inactive sooner than mesh peer links are, this will
actually only happen when mesh peer links are either deleted from user
land or because a specific "peer link close" frame is received.


-- 
Luis Carlos Cobo Rus       GnuPG ID: 44019B60
cozybit Inc.


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux