Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp937353pxy; Thu, 22 Apr 2021 17:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDXhQEMu7i9Uys/Nj5sQylWr7SThxOuObcVrgd0dASweQ8/2s7+mYfodn+8BpEgxEW/2dP X-Received: by 2002:aa7:c511:: with SMTP id o17mr1316526edq.335.1619139344342; Thu, 22 Apr 2021 17:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619139344; cv=none; d=google.com; s=arc-20160816; b=jKIN1+seM72m11HbseJaTOxjmj+n3giAcum7oTtoM7tWBK3b/CmOidzH0FElutCU/n crz5O1S3gOKyl3ZKGxn+b5MPljHfTy0C+AiSmg2gzA6tt2eDR/50hZcltrIUG7kCKw/1 Kk1rr0IsC2nIzIglxHOy6te4MomrXg9nzace9hPo1BVqTdKnwe/ytfLA4WMAPyS4RKzK +0qXfc3BjETTb5amE5HHcEZ7D5lWJfnDYr1tgNg9LjfXcdt9tRf/zW0MJzJOLymhb7dP wy4wSqvPjte8cRMtVc+nCZFl8Dk/HwdaSsYvBw4dGQO6w7JrPAn2lmR7ZJuwNjx1h2zd /Sbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ks1uW4TsJ3ZwYPwFK3x+RKWO8sV8NPeu0lKhg7RGxMc=; b=RHusgDfQ2YHlBkvOzZVKXu0CHoNThgoSHwt6DhdrgqzLZIv2WZ0GjycwNIG8rUAM3n cusAadAE4argUf40zITStCLtic9NQcH8N3jauMHxOK7m+m5VvD02R/pRxfoahKbVKeDz YM9OfU9VJV9kJJEk/srZBS7+FFl7ePsEkipcJeOFFD7WR6+qZRyqMNQUpCgNwEEa0w+5 CdXgvNJ/fR2cpwyyXynR1t4dQ1x/8ST6eaF8cpRmsGijTxfciqyz6OhN4JWQzs9qIbSB PvwJ9EXxKDWvZeE3QeGTtw/CsKTwnX6mREJVskWHIGDDgLdELNiPOKbPKfr61BE86/5i ew2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KROsPbra; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jt14si3715974ejc.617.2021.04.22.17.55.20; Thu, 22 Apr 2021 17:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KROsPbra; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbhDWAxs (ORCPT + 99 others); Thu, 22 Apr 2021 20:53:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbhDWAxq (ORCPT ); Thu, 22 Apr 2021 20:53:46 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDA7EC061574; Thu, 22 Apr 2021 17:53:10 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id bx20so54479140edb.12; Thu, 22 Apr 2021 17:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ks1uW4TsJ3ZwYPwFK3x+RKWO8sV8NPeu0lKhg7RGxMc=; b=KROsPbra7Y/3zLz6xWLefkQcjCRO3c8jNbQeaNQqk9GtopNlmlYMKqG9qddT6GrEhO TB8/IhH5IRXRGoOiduHvcwXaQqLLG6a5zUsA9RamAO63Qd55Q4uNZ8uf5opuafzSJ3wU 4EoSA51mdiUpeJOiEB3DyDi/7BuofwVGQxkZEOV6A41akp0f+ZQbYiLwVyMXFascI5hX 5jc7KuhbiRsr6Pni301JCPTLhg7vYqgUwEpTA8gdaMNs4hef4oaB547nF9xAmxHrLS4S jOm/Z0HtnAZT8RHzTdWyU9h897sJO7KhGdB2W1YUZtHUMTjnQrFieynpYMiNRPRArOu2 QuYQ== 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; bh=ks1uW4TsJ3ZwYPwFK3x+RKWO8sV8NPeu0lKhg7RGxMc=; b=jpDflzqhhippzd8SQ/91ccRZQY6i3UFYsO+zxfv2t7U9nDpvkY28/Va/rzizCfq/iv IyaTOFghfhX427HBJ2tbx7hem30qtgQurZ+mVLT4lr+Hk30kFkyXQeed9PdkVQcKUm03 3nBzjHsyPbSx8fFOyyw+MK3v6Tl/kBLwQbaSr7HbwyezZ7D6toGc4FIQvhjwaER7DI8/ o1IXWdc/YU8l317ozMiLCQmaJA/EBI2RKH5HPr+q90Akw8Ve7EKugwz0epBrTtPMY7Dr hVoYtlPozcVdYSn5iBUVhEKcbxguACa9kk1UVJvSOE3jj04E7BnTQoRQghWtDTmfO2DA 3D4A== X-Gm-Message-State: AOAM531M47fBpVINTHbMJ/oQckb6RPRXCPI5f8Sa/LTv6fKItQxyx1LD IIAmWUVt2yxxjIW0BvfPwMg= X-Received: by 2002:aa7:d78a:: with SMTP id s10mr1375841edq.310.1619139189674; Thu, 22 Apr 2021 17:53:09 -0700 (PDT) Received: from skbuf (5-12-16-165.residential.rdsnet.ro. [5.12.16.165]) by smtp.gmail.com with ESMTPSA id s5sm2807574ejq.52.2021.04.22.17.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 17:53:09 -0700 (PDT) Date: Fri, 23 Apr 2021 03:53:08 +0300 From: Vladimir Oltean To: "Ismail, Mohammad Athari" Cc: Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Andrew Lunn , Heiner Kallweit , Russell King , "Ong, Boon Leong" , "Voon, Weifeng" , "Wong, Vee Khee" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 net-next] net: pcs: Enable pre-emption packet for 10/100Mbps Message-ID: <20210423005308.wnhpxryw6emgohaa@skbuf> References: <20210422230645.23736-1-mohammad.athari.ismail@intel.com> <20210422235317.erltirtrxnva5o2d@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 12:45:25AM +0000, Ismail, Mohammad Athari wrote: > Hi Vladimir, > > > -----Original Message----- > > From: Vladimir Oltean > > Sent: Friday, April 23, 2021 7:53 AM > > To: Ismail, Mohammad Athari > > Cc: Alexandre Torgue ; Jose Abreu > > ; David S . Miller ; Jakub > > Kicinski ; Andrew Lunn ; Heiner Kallweit > > ; Russell King ; Ong, Boon > > Leong ; Voon, Weifeng > > ; Wong, Vee Khee ; > > netdev@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH v2 net-next] net: pcs: Enable pre-emption packet for > > 10/100Mbps > > > > Hi Mohammad, > > > > On Fri, Apr 23, 2021 at 07:06:45AM +0800, mohammad.athari.ismail@intel.com > > wrote: > > > From: Mohammad Athari Bin Ismail > > > > > > Set VR_MII_DIG_CTRL1 bit-6(PRE_EMP) to enable pre-emption packet for > > > 10/100Mbps by default. This setting doesn`t impact pre-emption > > > capability for other speeds. > > > > > > Signed-off-by: Mohammad Athari Bin Ismail > > > > > > --- > > > > What is a "pre-emption packet"? > > In IEEE 802.1 Qbu (Frame Preemption), pre-emption packet is used to > differentiate between MAC Frame packet, Express Packet, Non-fragmented > Normal Frame Packet, First Fragment of Preemptable Packet, > Intermediate Fragment of Preemptable Packet and Last Fragment of > Preemptable Packet. Citation needed, which clause are you referring to? > > This bit "VR_MII_DIG_CTRL1 bit-6(PRE_EMP)" defined in DesignWare Cores > Ethernet PCS Databook is to allow the IP to properly receive/transmit > pre-emption packets in SGMII 10M/100M Modes. Shouldn't everything be handled at the MAC merge sublayer? What business does the PCS have in frame preemption? Also, I know it's easy to forget, but Vinicius' patch series for supporting frame preemption via ethtool wasn't accepted yet. How are you testing this?