On May 7, 2014 2:09:24 PM EEST, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: >On Wed, 2014-05-07 at 12:38 +0200, Michal Kazior wrote: > >> I was actually thinking of just providing the bare minimum to fulfill >> requirements for the CSA case: int foo(*hw, **vifs, n_vifs, *oldctx, >> *newctx, flags). >> >> Having an array of transactions passed through a single call seems >> more robust and cleaner. Naiive drivers might just iterate over each >> entry while more complex drivers might examine the whole request and >> detect chanctx swapping. > >Not sure what you mean by "detect chanctx swapping" - the flags would >indicate that anyway, no? In any case, I like this better than a more >general transaction API I think, it's easier for the driver >implementation and clearer as to what needs to be done/supported. How is it clearer? I think having a list of transactions is clearer than trying to say with flags what needs to be done for each vif and what their relation to each context is... Additionally, I'm always for more generic solutions that may help us with future cases we haven't thought of already... unless the generalization complicates things a lot, which I don't think is the case here. -- Luca. -- 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