]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: return new mpath from mesh_path_add()
authorBob Copeland <me@bobcopeland.com>
Fri, 29 Mar 2013 13:38:39 +0000 (09:38 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2013 07:16:59 +0000 (09:16 +0200)
commitb61eec9c95e34a98e7b8a20af28b390605d512d0
tree996060a0166128480ad5e55244438cd16448fb99
parent1a9d839bc2ceb6c221a905d4c1afc728738f6ee8
mac80211: return new mpath from mesh_path_add()

Most times that mesh_path_add() is called, it is followed by
a lookup to get the just-added mpath.  We can instead just
return the new mpath in the case that we allocated one (or the
existing one if already there), so do that.  Also, reorder the
code in mesh_path_add a bit so that we don't need to allocate
in the pre-existing case.

Signed-off-by: Bob Copeland <bob@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c
net/mac80211/mesh_pathtbl.c