Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4069185imm; Mon, 11 Jun 2018 06:33:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKoB8vw37IQzVK8WSsKf0cS60C6+yFRkjMS5KSA/wdJ1kMr8XBOacaA8wJvYCjG2v306UkB X-Received: by 2002:a62:5d48:: with SMTP id r69-v6mr17559035pfb.84.1528724036777; Mon, 11 Jun 2018 06:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528724036; cv=none; d=google.com; s=arc-20160816; b=DF/Oo+e3nfy4ie5nJnhfCFa5FS1MABgKwklbD0nBagepODB9yfSp+RR++Sbb0gTcAw SFUlSFWTTdYhAk/gchGl2noecdnWtCUywkGf9aW5RdUS5/rSbgLohTyrNEMEpW6dSLkz 8sTgnrbi7+i0J8ietYEUOJzDibMMdIMkXqgjRzh7taPAghztLivUIZ1G4aLHyeqeJJtK OL2+3zcQusoyKVYpeTZ+C+JOfdH+jwU9SQ3LaOG7t5Qjlm5oihyugAPtigk1vBSUHMTa uTLYeLsZhdb3OnTT3dy6X6tJNRX+scTcNdC+INH+5MZ798thk5faFvXnp5rKv5t/ZD5d u0ug== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=QEII/3fKlM7VRZMuVo9waV9UCHHYm7cpFanxZdTzUfI=; b=hxKjAx8rZBrzrvecZDDmi8zuQTB02iZSGCB5Y4RZlz8jwTZoh+pYqdvqXHMchB0zD/ /fhu8ZLZ0SUa/uJynQ4zGCaHdnjtuqrgg2u9jGYGFO9dTYNWg0aDY69hAXPOpI7BYOa/ FW8fQVZyVp/KgaSNTZZnu/BrAKVbr66onqV2JGpLM7DjppqT8UqLGyq9uRFeZgtRSLGN 1/WaayAtUatDtxQxQ30MO9iO02kAWD9/a8Eh+k7QFeHOyTrUKXIvUc1CO/LQ/LUzsyr7 pc3bUZfitBJkA6KtOp1rp4koOnpfiHNpB2VlO/2oT8Wof8/ovcNpT8qJ4Yvp/t9MGdom x3Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=biqU4aXu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7-v6si29496118pfg.77.2018.06.11.06.33.42; Mon, 11 Jun 2018 06:33:56 -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; dkim=pass header.i=@linaro.org header.s=google header.b=biqU4aXu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754217AbeFKNbA (ORCPT + 99 others); Mon, 11 Jun 2018 09:31:00 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36953 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754014AbeFKNa5 (ORCPT ); Mon, 11 Jun 2018 09:30:57 -0400 Received: by mail-lf0-f67.google.com with SMTP id g21-v6so28582053lfb.4 for ; Mon, 11 Jun 2018 06:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QEII/3fKlM7VRZMuVo9waV9UCHHYm7cpFanxZdTzUfI=; b=biqU4aXunnW+Ivubo6AAStih02saSFcm/A0BAVAf0fP66QsB9ZTJqMVG0NLi+ZIQVe dv86FxQ+x6T9o2MyTSXZxglWMHKfoXQBSugY5v5baYKJLRhIt67PHWiNluhy9tYwPE7B yUppEjuoho4rn5HFtaBC7eMUSjwYyuHWykTYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QEII/3fKlM7VRZMuVo9waV9UCHHYm7cpFanxZdTzUfI=; b=Ie9Vvx0qc0i2L6vP6Mc7CE8BxsCDHRVkzQ+6DQKHm9d23sB20N7U89NQ+/sgvGaPGT MTSDQqiQArkBpTiUUhKt5G/FcXKYsIRgOlmMcszCdg1fqiAQj4AyPhpDKj5teKBFEiO3 FcLbKd6gj3tQh2KABe0F8isvN9fuSB79mfOUygarpny0uANCflHiR142csUOEGTNPbY4 LHLNOk9Cm/oLK4gOtkRy4N8Q+9PKLYHvEK2MiCkKeVSs7+pnla2E7gpMENZC78bqJosz HrmGI4hRR05e32h6pkiAOvC7MpLmuqxz7YMxGuGYKjMLAOEQ0Xw7RFov/0UtBpWPWF51 hHWQ== X-Gm-Message-State: APt69E1VgV8gxjdwdNHaAOAya65yQjlfN3ZBJ3rQYUTim+fQxTifi5o3 LNg7q5Cv6gUqTKLggRmnXQlt5Q== X-Received: by 2002:a2e:6f02:: with SMTP id k2-v6mr11739267ljc.72.1528723856439; Mon, 11 Jun 2018 06:30:56 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id u24-v6sm2617712ljj.96.2018.06.11.06.30.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 06:30:55 -0700 (PDT) From: Ivan Khoronzhuk To: grygorii.strashko@ti.com, davem@davemloft.net Cc: corbet@lwn.net, akpm@linux-foundation.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, vinicius.gomes@intel.com, henrik@austad.us, jesus.sanchez-palencia@intel.com, ilias.apalodimas@linaro.org, p-varis@ti.com, spatton@ti.com, francois.ozog@linaro.org, yogeshs@ti.com, nsekhar@ti.com, Ivan Khoronzhuk Subject: [PATCH net-next 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload Date: Mon, 11 Jun 2018 16:30:41 +0300 Message-Id: <20180611133047.4818-1-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds MQPRIO and CBS Qdisc offload for TI cpsw driver. It potentially can be used in audio video bridging (AVB) and time sensitive networking (TSN). Patchset was tested on AM572x EVM and BBB boards. Last patch from this series adds detailed description of configuration with examples. For consistency reasons, in role of talker and listener, tools from patchset "TSN: Add qdisc based config interface for CBS" were used and can be seen here: https://www.spinics.net/lists/netdev/msg460869.html Based on net-next/master Ivan Khoronzhuk (6): net: ethernet: ti: cpsw: use cpdma channels in backward order for txq net: ethernet: ti: cpdma: fit rated channels in backward order net: ethernet: ti: cpsw: add MQPRIO Qdisc offload net: ethernet: ti: cpsw: add CBS Qdisc offload net: ethernet: ti: cpsw: restore shaper configuration while down/up Documentation: networking: cpsw: add MQPRIO & CBS offload examples Documentation/networking/cpsw.txt | 540 ++++++++++++++++++++++++ drivers/net/ethernet/ti/cpsw.c | 364 +++++++++++++++- drivers/net/ethernet/ti/davinci_cpdma.c | 31 +- 3 files changed, 913 insertions(+), 22 deletions(-) create mode 100644 Documentation/networking/cpsw.txt -- 2.17.1