Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp775056imu; Thu, 3 Jan 2019 06:58:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN6FE6W2Z+Q02PMLDfZ0cOFesk+UIQURqFzWzW5v9+JSMTTusCnF7ulotVtjCevCIo87PDP1 X-Received: by 2002:a63:9c1a:: with SMTP id f26mr17501914pge.381.1546527492041; Thu, 03 Jan 2019 06:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546527492; cv=none; d=google.com; s=arc-20160816; b=OBRbGQ25pX1A1uMPkkeXIHmJBjMGn8aTpgZhrSd6Hmz483Xl+dhhILXLFl/2T47nQm zx7epdgjM/9TYz7TRt4tfzsGEgkMfM3TznzVpY3H9lckVHiTbgYJEOMPt6J+KLM0Pz4x pUPO8WdemxZkBTHLARcCOs9LhzHIoS71IeBRCurRGOuLs0ZG/2XIrXh/wu4kypvXEXdx DNCO/Wt0CUYupqrSUZhsrlfW9Ldq3vTv0ugLg4iv4q3Cp8EjovCIEVk82cIP6KpXnJK1 gTMtZMOCLBN+vVbkttdhwZqZNBmIpRF/n3WGTjnYmGNkzLZqE6s3Tnt+B7zZKVloJIe5 8uZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=14cEYofJy5M+Jg+RGLYhiijeN2FQ6vOAKLYjQmnfA+c=; b=B8T099VpRrwseyvB/2qhButLYjZU9tklgyXyYkwlmRcO9m2fwKBgLrRMJOoqDww//5 YElOHAwzI4iDChPLNsWFTgWhsKQr97y5gypzGDoOrpZTsJ9vM7uSKkj/RanNLe0x7jnv CXhX88nzOGEtdEg8CWYvtrQ+BQwE90Mgjbsx78jgCHikns0Jz9eGTubbnhHzxsfqYpJf QLWxNc/llcWuTDyhhpIJ4KiJTigogt++rA6k3OxqNGtF0f3EVDJHt4Av9QMBUI9mrqnJ Fe9ltxtTFmtcOKhFxeD1Ty8H+TJ5SG68fDhZ3I32BKll+zCByMGxnpqXunTU7hdijRJu vDBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b6hriFBY; 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 o3si7074242pgq.139.2019.01.03.06.57.57; Thu, 03 Jan 2019 06:58:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=b6hriFBY; 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 S1731188AbfACLjB (ORCPT + 99 others); Thu, 3 Jan 2019 06:39:01 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36947 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbfACLjA (ORCPT ); Thu, 3 Jan 2019 06:39:00 -0500 Received: by mail-wr1-f68.google.com with SMTP id s12so33243738wrt.4 for ; Thu, 03 Jan 2019 03:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=14cEYofJy5M+Jg+RGLYhiijeN2FQ6vOAKLYjQmnfA+c=; b=b6hriFBYvjAhigOo8yknaCCPgNk9zfyz31EFZK/WvYt2MkT9hFVZHC4QVMVfS0vmW3 UNCVJGuU0h76iXs0TovovYP4IWAncy/hCcyFpGtZwqkf/hKjuMSP9ducz4iStwF+Y5Ss owDLptnsEpuRYZ3XTpGPFKib9ta3g0zU2Fwzc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=14cEYofJy5M+Jg+RGLYhiijeN2FQ6vOAKLYjQmnfA+c=; b=Eg2TrWswMA8e6V9u+dD2yqGwiSNoTnGfXhZ8zdrXh57VmGkpgk3sDwtpeCTI9z313r p64hPq7VlW91eN8DL4g3oJEuJqNcWrukrs2vD+vl1H8eWJw/BJCSGiF9s8j5hC9hsTFd x55t5EAaMEIy3ENsonyYJHo5Jcw3B7enGLJSYqKWjyg6dVq41586rPySY62D83kfcc85 g/U4zc+4utb9P1sTnC7oJ87tytyLx4n9v1Hx1M4GA2Zy5ESxx47G6NwS2kFajBdIcBCA KLAltS7gjaxur/DrtfezPS7pDkhMnEUAFak1beZqQYX7Ad3hXEcLGA9HfEtqzJCrQ+Vu xMmw== X-Gm-Message-State: AJcUukcVEZGO3ozHsfdZdz1qJVWlOn44Ax5I4Ga20UPar/YNGQdnJcjb YoY6WzLBejroHUSvo8Ha49kU+Q== X-Received: by 2002:adf:e911:: with SMTP id f17mr43537517wrm.126.1546515538942; Thu, 03 Jan 2019 03:38:58 -0800 (PST) Received: from apalos (athedsl-4482683.home.otenet.gr. [94.71.50.131]) by smtp.gmail.com with ESMTPSA id o5sm67543207wmg.25.2019.01.03.03.38.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Jan 2019 03:38:58 -0800 (PST) Date: Thu, 3 Jan 2019 13:38:54 +0200 From: Ilias Apalodimas To: Po Liu Cc: Vinicius Costa Gomes , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , "haustad@cisco.com" , "nicolas.ferre@microchip.com" , "gregkh@linuxfoundation.org" , Mingkai Hu , Roy Zang Subject: Re: [PATCH] net: tsn: add an netlink interface between kernel and application layer Message-ID: <20190103113854.GA10968@apalos> References: <1545968772-7237-1-git-send-email-Po.Liu@nxp.com> <1545968945-7290-1-git-send-email-Po.Liu@nxp.com> <87r2e14fgr.fsf@intel.com> <87k1jm51ey.fsf@intel.com> <20190103091605.GA4597@apalos> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Po, > > > > Some protocols target to configure the traffic class(like Qav CBS). > > > > Some to config the port(like Qbv). But some for the whole ethernet > > > > controller(like Qci, the control entries for the whole controller, > > > > which input ports and which output ports). > > > > > > Reading your email, now I understand your point a little better. You > > > are interested in multi-port devices. I admit that I am not too > > > familiar with how multi-port devices are exposed in Linux, I was only > > > focused on the end-station use cases, until now. > > > > Have you considered a switchdev-based driver for multi-port devices? > [Po] Yes, the patch is including the switchdev-based driver. In fact, we have driver examples for ls1028 which include end-station IP and switch ports IP, with this interface driver, it is working. But we need to add base ethernet driver of ENETC(end station) and FELIX(switch) upstream first, then add the TSN driver upstream. > > > What you ask of TSN configuration is currently doable with switch switchdev > > for VLANs and other similar networking functionality. > [Po] I think the VLAN configure is not conflict with the TSN. TSN is extending the 8021Q. TSN configure the setting of filter frame or scheduling between TC. But maybe need to consider as whole as you said. VLAN was an example of devices already performing complex configuration using switchdev and configurating 'switch' ports and 'cpu' port(s) individually. It wasn't related to TSN or its 802.1Qbv importance in any way. > > > > Instead of rewriting this from scratch, we not extend the currect TC and > > switchdev functionality for that ? > > [Po] Ya, there are operations of switchdev. You may think that to add the TSN configurations ops into switchdev operations. But we need to consider the end-station devices and switch all in the devices or in the TSN domain. The TSN domain is the devices include TSN capabilities ports, for up layer, we need to provide a formal interface. So tsn configure can be standalone. > In this patch, we treat two kinds of ports when registering the ports, end-station or switch. This may treat them in some minor differences in TSN spec and drivers. > Why are switches different than end-stations configuration wise? I understand that you may need to support different TSN IEEE standards per device, but adding support for different capabilities shouldn't affect a 'common' configuration path. That's the actual advantage of switchdev based drivers. switches and end stations will have a very similar way of confiration via iproute2/bridge/tc utils. Am i missing something? /Ilias