Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753865AbbG2T2x (ORCPT ); Wed, 29 Jul 2015 15:28:53 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:33558 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324AbbG2T2v (ORCPT ); Wed, 29 Jul 2015 15:28:51 -0400 Date: Wed, 29 Jul 2015 12:28:50 -0700 (PDT) Message-Id: <20150729.122850.41892076269756846.davem@davemloft.net> To: vivien.didelot@savoirfairelinux.com Cc: sfeldma@gmail.com, netdev@vger.kernel.org, jiri@resnulli.us, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com Subject: Re: [PATCH] net: switchdev: restrict vid range abstraction From: David Miller In-Reply-To: <117624450.145106.1438197245281.JavaMail.zimbra@savoirfairelinux.com> References: <20150729.112842.1871916445536378243.davem@davemloft.net> <117624450.145106.1438197245281.JavaMail.zimbra@savoirfairelinux.com> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 29 Jul 2015 12:28:51 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 844 Lines: 21 From: Vivien Didelot Date: Wed, 29 Jul 2015 15:14:05 -0400 (EDT) > While a range might be convenient to a user, exposing it to drivers is > likely to end up writing the same vid_begin to vid_end for loop. It is impossible not to expose this to the driver. We have to have a prepare/commit sequence where the prepare part can see the whole of the request. It must know the full set of changes it must be able to support in one go in order to signal a failure properly. So in fact this is the most convenient way for the drivers to be exposed to this issue. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/