Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1366629pxk; Thu, 10 Sep 2020 13:36:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyurG+VyRn01MtFwcns021ihLHWEkQ+5SCdpe1saqdJochyTcS99y5eyzkOgK06jIIg+oil X-Received: by 2002:a17:906:a4b:: with SMTP id x11mr11371986ejf.368.1599770176107; Thu, 10 Sep 2020 13:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599770176; cv=none; d=google.com; s=arc-20160816; b=ydo3m52rVsaEyWk+KOQcRd6l+ugyH/zLSYiOxOjAZLZEf3vwJLospqTNXWydczpkMH JWfgDZ2YEDeRpdiI0qEgtcU0wikLePJI/NYrjMSVkEuIWvaErS+MdSgrTrNK3FVYAvc5 XG4SurUvuG9W/l3WSUXgOJICbm8ef98MfQa9emoNaYhzbPQNSV26ndOipuzBDzB5OlBv I32Zip9Zrhzk5nPzTGS6CX2do7IMSI5Fpi+CRoYfT2QCLCzABzSbcq93NX4YfT9O+ZkJ tA3Q7iqDnfsWda907+BLy7BQcIf+7vDFv0OS2ixxLkTTTQ7MGIhop5gXtO9z7mSMbMD2 nohw== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=XSOmanJdeik40Bgqb/vGDLitLIdv4TwuLLVIoG4FNZ0=; b=kpKnxTh/OJS0XGp0lj5lZxOYP00FQUCl7boIRLaXh5510liAn7Yd/1W/Ww1dw3vhW7 TsX1ycabezqr+8Cl5PuRrUGConTvJ4f4pSGc/zviCklIJr1ek72WuUUwlcFlR70PaZ5N rry2DoI1oKi7PR/liJ9tBT2s+6TqwqI7hyN9vTtt0yrIiHzNJTWHxFIZqulPcuiZ0GoR v8zuHGGlmCQ0+jzDXBF9QCApP+DUcA8jCPGMGsSppQUR3+Tyr8UKqsSmKChGopsEhYRP hASGIn+PtceKEjomkFpIf9Xb3eLoqv0mLncn1fIE0l6bYzCbmWs14M71Lf3Yf3nbRE/h CPOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LQI2toSw; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z25si4119406eje.701.2020.09.10.13.35.53; Thu, 10 Sep 2020 13:36:16 -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=@kernel.org header.s=default header.b=LQI2toSw; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727024AbgIJUdY (ORCPT + 99 others); Thu, 10 Sep 2020 16:33:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbgIJUbA (ORCPT ); Thu, 10 Sep 2020 16:31:00 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF6EA206E9; Thu, 10 Sep 2020 20:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599769860; bh=7lYML09NJIhF4amEUFSTp7nrcxK75B3+CJqmxANN14U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LQI2toSw+bXD2I63/ENGJ4v+j2dIiqm1jYDEiZJZg5iyxNKI1JlPwA3k8yL7821NY dnt3Ug+M8kKNN3m0LiaGUna3EM3SxH5A53R/ON189nmr+l4DWyhHFpCqSEefwwTbVK lzmzHJFFdglaEXO0XBJhT6Z+kPPCtU6xmGaQgdBc= Date: Thu, 10 Sep 2020 13:30:58 -0700 From: Jakub Kicinski To: Oded Gabbay Cc: "Linux-Kernel@Vger. Kernel. Org" , netdev@vger.kernel.org, SW_Drivers , Greg Kroah-Hartman , "David S. Miller" , Omer Shpigelman Subject: Re: [PATCH 12/15] habanalabs/gaudi: add debugfs entries for the NIC Message-ID: <20200910133058.0fe0f5e3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20200910161126.30948-1-oded.gabbay@gmail.com> <20200910161126.30948-13-oded.gabbay@gmail.com> <20200910130138.6d595527@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200910131629.65b3e02c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Sep 2020 23:17:59 +0300 Oded Gabbay wrote: > > Doesn't seem like this one shows any more information than can be > > queried with ethtool, right? > correct, it just displays it in a format that is much more readable You can cat /sys/class/net/$ifc/carrier if you want 0/1. > > > nic_mac_loopback > > > is to set a port to loopback mode and out of it. It's not really > > > configuration but rather a mode change. > > > > What is this loopback for? Testing? > > Correct. Loopback test is commonly implemented via ethtool -t