Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp722573ybx; Tue, 5 Nov 2019 04:37:55 -0800 (PST) X-Google-Smtp-Source: APXvYqz4qB0jBMWnBG89lF1N/F3JAhwl17IepI8Yy/0G+kVPN7chcUH+1fTU4OUT9Y56dywB5I9k X-Received: by 2002:a17:907:20db:: with SMTP id qq27mr29769321ejb.100.1572957475211; Tue, 05 Nov 2019 04:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572957475; cv=none; d=google.com; s=arc-20160816; b=xXeo31PD8gBhRp/72qwQnf16CnY6PqVO2V77BRgUNeqwBpTEO8hcMp+o5RsxSRm3Uf fNQDjl1axLuxgLsM/prl7tuDM3eDDKdn/6GoEZ6IzR6v+V+RlzjmP3YNT181CP8Rag8/ 4fXvCQvuvw+hs4HmnS5k+V2Vc910LiYQ/EJCtXj2htYqF9JYNvhAtgkzRZNv7/zQXkWX VizingeqUsLacNwPxbgFlyYox9v6O5sef8SWkQeDdCoqMYhLQS3NICHPInMrRrYWuv42 ssHDGrhjp38RFcO8Ne06PvrzY8LnmFA/w5nhZURRIgWtOK3WgcETxq5av2+5Q57nrPr8 WkQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:message-id:date:subject:cc:to :from; bh=LfTnoc4p9GTDAF6D/rYGqtFNhAMN9essSsOh17lpLEU=; b=TKpSG1bIFHTiyMgi8SIReYAevS8/reB9pDWnpUOUBXau5Z+2PvWbgvP51r2lp371jo PXc0Mg6UdusnZpsdYRZqY53w1R0V7+W+OhUalxfh4trgEI7wOelqf89pHKpDWOxYv3So 2pa30UFseS4M8OBhCFSx1r++ycsHUXX5g9alDpgEymWSFYaP95ft5yTEDk6zuOqvDlvQ sJ9Ry/W7heksoxRgKkxgYkCD1V5g+vT+KNdriamrB3LB4E7pLy74Mhm+EygH0Q/HRCrv owQUpVj6gretZtpBXp0iVcWLGNjZPTb8J3QPkIymln+pA0fX5c2qdaxXWmfJrnDLi0j0 ghFQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x18si13511757ejo.78.2019.11.05.04.37.31; Tue, 05 Nov 2019 04:37:55 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388581AbfKEMe6 (ORCPT + 99 others); Tue, 5 Nov 2019 07:34:58 -0500 Received: from inva020.nxp.com ([92.121.34.13]:59502 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387744AbfKEMe6 (ORCPT ); Tue, 5 Nov 2019 07:34:58 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DD5741A01F8; Tue, 5 Nov 2019 13:34:55 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D167F1A01E9; Tue, 5 Nov 2019 13:34:55 +0100 (CET) Received: from fsr-ub1464-137.ea.freescale.net (fsr-ub1464-137.ea.freescale.net [10.171.82.114]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 94824205ED; Tue, 5 Nov 2019 13:34:55 +0100 (CET) From: Ioana Ciornei To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: andrew@lunn.ch, f.fainelli@gmail.com, Ioana Ciornei Subject: [PATCH 00/12] staging: dpaa2-ethsw: add support for control interface traffic Date: Tue, 5 Nov 2019 14:34:23 +0200 Message-Id: <1572957275-23383-1-git-send-email-ioana.ciornei@nxp.com> X-Mailer: git-send-email 1.9.1 Reply-to: ioana.ciornei@nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds support for Rx/Tx capabilities on switch port interfaces. Also, control traffic is redirected through ACLs to the CPU in order to enable proper STP protocol handling. The control interface is comprised of 3 queues in total: Rx, Rx error and Tx confirmation. In this patch set we only enable Rx and Tx conf. All switch ports share the same queues when frames are redirected to the CPU. Information regarding the ingress switch port is passed through frame metadata - the flow context field of the descriptor. NAPI instances are also shared between switch net_devices and are enabled when at least on one of the switch ports .dev_open() was called and disabled when at least one switch port is still up. The new feature is enabled only on MC versions greater than 10.19.0 (which is soon to be released). Ioana Ciornei (12): staging: dpaa2-ethsw: get control interface attributes staging: dpaa2-ethsw: setup buffer pool for control traffic staging: dpaa2-ethsw: setup RX path rings staging: dpaa2-ethsw: setup dpio staging: dpaa2-ethsw: add ACL table at port probe staging: dpaa2-ethsw: add ACL entry to redirect STP to CPU staging: dpaa2-ethsw: seed the buffer pool staging: dpaa2-ethsw: handle Rx path on control interface staging: dpaa2-ethsw: add .ndo_start_xmit() callback staging: dpaa2-ethsw: enable the CTRL_IF based on the FW version staging: dpaa2-ethsw: enable the control interface staging: dpaa2-ethsw: remove control traffic from TODO file drivers/staging/fsl-dpaa2/ethsw/TODO | 8 - drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 141 ++++- drivers/staging/fsl-dpaa2/ethsw/dpsw.c | 365 +++++++++++ drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 226 +++++++ drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 964 ++++++++++++++++++++++++++++- drivers/staging/fsl-dpaa2/ethsw/ethsw.h | 83 +++ 6 files changed, 1763 insertions(+), 24 deletions(-) -- 1.9.1