Return-path: Received: from s3.sipsolutions.net ([144.76.43.152]:50209 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932405AbaEGNGS (ORCPT ); Wed, 7 May 2014 09:06:18 -0400 Message-ID: <1399467968.10517.39.camel@jlt4.sipsolutions.net> (sfid-20140507_150621_493870_0EEB72CC) Subject: Re: [PATCH v5] mac80211: implement multi-vif in-place reservations From: Johannes Berg To: Luca Coelho Cc: Michal Kazior , linux-wireless , Simon Wunderlich Date: Wed, 07 May 2014 15:06:08 +0200 In-Reply-To: <1399467196.6800.22.camel@dubbel> References: <1397050174-26121-14-git-send-email-michal.kazior@tieto.com> <1398849681-3606-1-git-send-email-michal.kazior@tieto.com> <1399372915.4218.17.camel@jlt4.sipsolutions.net> <1399385141.4218.37.camel@jlt4.sipsolutions.net> <1399450061.5038.10.camel@jlt4.sipsolutions.net> <1399455657.6800.4.camel@dubbel> <1399457760.6800.7.camel@dubbel> <1399460964.10517.12.camel@jlt4.sipsolutions.net> (sfid-20140507_131912_954267_EF512364) <1399463646.10517.28.camel@jlt4.sipsolutions.net> <1399464536.6800.11.camel@dubbel> <1399464789.10517.29.camel@jlt4.sipsolutions.net> <1399465244.6800.13.camel@dubbel> <1399466312.10517.34.camel@jlt4.sipsolutions.net> <1399467196.6800.22.camel@dubbel> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2014-05-07 at 15:53 +0300, Luca Coelho wrote: > > > > new chanctx3 > > > > switch vif2 chanctx1->chanctx3 > > > > switch_transaction(chanctx1, chanctx2, vif1) > > > > > > Couldn't this potentially break the combinations temporarily again? > > > > I don't see why? You had a spare channel context to start with, > > otherwise you'd never have accepted this situation. Therefore, you can > > use the spare one before actually doing the proposed > > switch_vif_chanctx(). > > It's not about the spare, it's about having this temporarily: > > chanctx3-vif2 > chanctx1-vif1 > > Can we be sure that chanctx1 with vif1 is compatible with chanctx3 with > vif2? We only check chanctx2 with vif1 and chanctx3 with vif2, which is > our final goal. > > I'm not sure this is even possible, but it was something like this I had > in mind. Oh, I get it, you're thinking that there might be a situation where those vif types are maybe not supported with different channels? But in your example you're going from this situation: chanctx1: vif1, vif2 to chanctx2: vif1 chanctx3: vif2 The intermediate step that I proposed would give you chanctx1: vif1 chanctx3: vif2 Which isn't really any different? Maybe you could construct a more difficult via situation though where it actually does end up with a conflict - or can we prove that can't happen? johannes