From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F0EA43160 for ; Sat, 14 Oct 2023 18:37:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EABF2402CC; Sat, 14 Oct 2023 18:37:21 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 8A563402AB for ; Sat, 14 Oct 2023 18:37:20 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-565e54cb93aso2118462a12.3 for ; Sat, 14 Oct 2023 09:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1697301439; x=1697906239; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=5q09VM5C6QLiQz6RND++l9LNpSJ3BPednEkDv4ksYq0=; b=nxmULa0d49OyIel78Dm5QVSdCM9P4A9N69B+Tk2F2a758YsqrcH7/6CtbyDjX6LOiU Y6c6h6suK0eWUscPArjYAkToDUCkbNzTZ9JAnUL70BxhblkBzD3r5ho64g6UWGdCLUeq 9vCX2HiMRVTB+2vtgzsENWmiQ2sYEB6ZDMCd9iHskb2u75oytsxHOqFV5zkTRxBbjhHc TOA9ssep8Pja0yeLCtECOHzt9TNwKk5VSr+TTmVGY/UmHpGttpc4BE35xRDxAx/nTbso A8fxXOpRZF39kj4ebVEOCFbfnLXX0OGvuEjHUbKNAeTTE9SzjmSsEa1RQNsB//l9Zwos JZbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697301439; x=1697906239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5q09VM5C6QLiQz6RND++l9LNpSJ3BPednEkDv4ksYq0=; b=mOqIr/N4F2hg6ILFcjsKhh1Aq+2GkZVsnj/C1e/Amb72/FsG+gJUMWAR7JQy0LkJ4c xt84MbZvZxMxLd7DeFVohDs0wHt58T2vYjg6X5+x8tcaaDAA+77Z7/cMSQPFtR5q2LXI VDFuPDI2iCGWnw4i4chqnvGKvcRgNvoydFd1ItKgyJZ6YmuMp4GD9ppUv0U7sTRGWnuj llt9Nx4S5JctCB4D4Qat+AQOw5Z/u1Vx3AUx/4lcMn/0KxW87Ap/buAfMUB1tLlCqvyx 1Qlwps1MKTfbNm8Z1ihyoSpQI/iP2Lt5bCWpCkLFN1fSEXfuf4J9dKwKtpE6GqHBMble p2kg== X-Gm-Message-State: AOJu0YxuDnwvhoiKii1a2EiMImJJaxXDxwGyiP7IvFfuQPId+KaK3GSm ZBVM1jA6looGIBGbe7ZfqDZ8VQ== X-Google-Smtp-Source: AGHT+IFzs4EWdLBw9HMmakl8QtqBU5khLS+JDV2iul5Y8qvlYM2ekEKpCUn27Z0fXut8Snqs/S/qlg== X-Received: by 2002:a17:90a:3f16:b0:279:1367:b9a3 with SMTP id l22-20020a17090a3f1600b002791367b9a3mr26783118pjc.4.1697301439317; Sat, 14 Oct 2023 09:37:19 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id hg17-20020a17090b301100b0027654d389casm1861714pjb.54.2023.10.14.09.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 09:37:19 -0700 (PDT) Date: Sat, 14 Oct 2023 09:37:17 -0700 From: Stephen Hemminger To: Alireza Sadeghpour Cc: users@dpdk.org Subject: Re: How to configure ethernet controller registers in the dpdk environment Message-ID: <20231014093717.22e70ceb@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Sat, 14 Oct 2023 18:32:24 +0330 Alireza Sadeghpour wrote: > > > Hi, > > I am trying to set some registers of the ethernet controller in the DPDK > environment, but I can't find the corresponding API to do this. is there > any API in the DPDK library for configuring the ethernet controller > registers? There is intentionally no API to set registers of ethernet controller. All the configuration should be done in the Poll Mode Driver (PMD). If you need custom configuration, it means adapting the PMD and ideally making it part of the configuration settings and upstreaming so it doesn't get broken in next release.