Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4132863ybi; Tue, 18 Jun 2019 12:22:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzO6GR7IFH7wRaohfEZpwHTYidfwslGYyJfcSkqRaXdyf90ka9F0ReSimn6G8urUCKTsrq X-Received: by 2002:a17:902:6903:: with SMTP id j3mr39755608plk.247.1560885774218; Tue, 18 Jun 2019 12:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560885774; cv=none; d=google.com; s=arc-20160816; b=PaucWb7Rbf4zIA1JQebzi/NY1Rlq3Yf6SpZCXpAIPLX7GExgSs1DqD7qq/+bVlomyQ C6P3nqlfO65mk8s6AUhyea5W2NE0aeeIa7ixBCmSM+VQQBYCZfGHuhAY1XoW8tJXTUa+ yxcKCGH4k0rQ4uu2xPCuHu+JsjTe+gNKvKpXCogbcPTJT2mcQRxEoimphmUOUISo8r1P USXqWtz2haL8l0raRc9IQHIFZiHdpAJi41TpMbSwdba5NkTj4tPOiprqwoxe0o1utuxb SlSKOpW+P5CX8M1B3aCk6hetNpiw4VSalj3XQtiCLtMZrdVHcMHzjEsEfQkhxF4ONZI7 cREA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=HI45E8LPWK3k+6o00iqRecxnWpe2T7qPyO60qHDhAtc=; b=ej5l/FSLnVxVz4LjE31DP8+jpz4gDfDiRCrnZyVplsbuMQWwvlRKY9q6+T8c53CvEs Q/DLvDW+XjwIclA6uhSTqpCDIHdkkEb4ZbMV2fE6Q30+yW5pRhxGN6cEfr4w+WOgl6aR 8z8E93g55wYLrJnQzOoHfCdHWsiU840s9M1nCREXL611IcvXuHgHP22rt9Djs+9eQ+aG dAozMyJr6YDkF/jUvTLmo1sQu3Pwz/nvIYKndfZ3vEP4X5/xWs9XII8vn1lSl9P0xRMV NXeagdUsjU/fxC1d1eScl/9siDfaPK4suiwimEAi3JnPCDdxjp81l79KKAgkbzKd8krV iZ2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k73si3185213pje.10.2019.06.18.12.22.37; Tue, 18 Jun 2019 12:22:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730348AbfFRTWb (ORCPT + 99 others); Tue, 18 Jun 2019 15:22:31 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:46278 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbfFRTWb (ORCPT ); Tue, 18 Jun 2019 15:22:31 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hdJgO-0005LX-Ie; Tue, 18 Jun 2019 21:22:16 +0200 Message-ID: Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver From: Johannes Berg To: Alex Elder , Arnd Bergmann Cc: abhishek.esse@gmail.com, Ben Chan , Bjorn Andersson , cpratapa@codeaurora.org, David Miller , Dan Williams , DTML , Eric Caruso , evgreen@chromium.org, Ilias Apalodimas , Linux ARM , linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , linux-soc@vger.kernel.org, Networking , Subash Abhinov Kasiviswanathan , syadagir@codeaurora.org Date: Tue, 18 Jun 2019 21:22:14 +0200 In-Reply-To: <31c2c94c-c6d3-595b-c138-faa54d0bfc00@linaro.org> (sfid-20190618_160100_881541_6AD64A3C) References: <380a6185-7ad1-6be0-060b-e6e5d4126917@linaro.org> <583907409fad854bd3c18be688ec2724ad7a60e9.camel@sipsolutions.net> <31c2c94c-c6d3-595b-c138-faa54d0bfc00@linaro.org> (sfid-20190618_160100_881541_6AD64A3C) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-06-18 at 09:00 -0500, Alex Elder wrote: > Deaggregation is a connection property, not a channel property. That'd make sense, yes. > And it looks like that's exactly how it's used in the rmnet > driver. Yeah, I think you're right. I got confused by the whole use of "port" there, but it seems like "port" actually refers to the underlying netdev. Which is really strange too, btw, because you configure the "port" to agg/non-agg when you add a new channel to it ... So it seems like it's part of the channel configuration, when it's not! Anyway, I think for now we could probably live with not having this configurable for the IPA driver, and if it *does* need to be configurable, it seems like it should be a driver configuration, not a channel configuration - so something like a debugfs hook if you really just need to play with it for performance testing, or a module parameter, or something else? Or even, in the WWAN framework, a knob that we provide there for the WWAN device, rather than for the (newly created) channel. > The hardware is capable of aggregating QMAP packets > arriving on a connection into a single buffer, so this provides > a way of requesting it do that. > > > > #define RMNET_FLAGS_INGRESS_MAP_COMMANDS (1U << 1) > > > > Similar here? If you have flow control you probably want to use it? > > I agree with that, though perhaps there are cases where it > is pointless, or can't be supported, so one might want to > simply *not* implement/advertise the feature. I don't know. Sure, but then that's likely something the driver would need to know, not necessarily userspace? johannes