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 6FC6F45CB4; Fri, 8 Nov 2024 16:58:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0894043348; Fri, 8 Nov 2024 16:58:52 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 60DD84025C for ; Fri, 8 Nov 2024 16:58:50 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-20cbca51687so23555845ad.1 for ; Fri, 08 Nov 2024 07:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731081529; x=1731686329; 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=df7Z889sT4yM46OVT7lNpi4AiCo9sjEycd3ZpWieIAg=; b=FpG5dQtUHg7HhK34A2Bfs2AWdi5FzSB54QynTZetJ6HOxqZFCfmje75yo1V3xO+Rfj qZk+sw4WJFUyfn7u08ihHHO2Z+aoxqmtLkVb8aL5AEJNZrU/Lu+FoP2yISdNEt17zGOZ GGaejBImS8QLG4tY4nLI+HD2k4DQPu7CrRdJydRBsC4Ha/7l+wqRPDpOhfyU38Zkcv6L /7Qt/fyIG32yObCKLuPLRvWqbkrLCt3nRcqoh8osLm5PwwM2TdtBsUzX2T1aVQnzcSkZ ZhN0saJlMSQwBr5ZOhKtRR5/AM9ZiQJeyeMQjDEY3xy2m9STHZQhtUQRuntTSDHIvuwT 035g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731081529; x=1731686329; 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=df7Z889sT4yM46OVT7lNpi4AiCo9sjEycd3ZpWieIAg=; b=o20Nyw8YqXyzfZxW7t/O1sQ1WQPUzTi/gz7G8I3vUxlIf1nN4pWigMdrTaZFVsK0Nf 6vUaQLmvjSdiz6izoABsEWTTrjTmFtlCAst4dvWDrxy4VgXiScUkFzJ+CPlSZ3Y7/teQ X1jiTo7OM5eEr7thfYZr/SK6ypZgM/lrCT1+8i9U8aKery00hxHWIpaeYXd/DLwcn7KM Sa0xEzDQmGrkF2m9wMb14xnksw6mbY7o2FhfPGzpNa4ih4ldATCkLRGXsKYBf6xHWmSp 85i8ca2dxdQ/P4rk20+Orlq9LhgVhn+GCyNjtTSonhuc8GlsRBs05jvsXY9oAuLBabZb UKfQ== X-Gm-Message-State: AOJu0YydPJK21Z3w+cnwRIlk1taI1h3vcZ9+1Lorq2hgBknMCybDlaQI Ju4Nz9/mwIjNiv5z6TvjUbedVVAo4rBCjvp/sOjn+iv3tpSthHbk5vJ+ejI7mbxXHNDX5ylAPbm U X-Google-Smtp-Source: AGHT+IHc4vqDNVI2KTrc6wU1U3xq116OT8Psd5UwyW0sUnR1yGQhktkKea/0Y5twPM9zMiAKb+q+PQ== X-Received: by 2002:a17:902:f68a:b0:20c:a692:cf1e with SMTP id d9443c01a7336-2118358afb4mr40779745ad.43.1731081529067; Fri, 08 Nov 2024 07:58:49 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9b2bc93bcsm1828795a91.13.2024.11.08.07.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 07:58:48 -0800 (PST) Date: Fri, 8 Nov 2024 07:58:47 -0800 From: Stephen Hemminger To: Howard Wang Cc: , Subject: Re: [PATCH v6 01/17] net/r8169: add PMD driver skeleton Message-ID: <20241108075847.3847ab7f@hermes.local> In-Reply-To: <20241108121123.248797-2-howard_wang@realsil.com.cn> References: <20241108121123.248797-1-howard_wang@realsil.com.cn> <20241108121123.248797-2-howard_wang@realsil.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 8 Nov 2024 20:11:07 +0800 Howard Wang wrote: > +#define RTL_DEV_PRIVATE(eth_dev) \ > + ((struct rtl_adapter *)((eth_dev)->data->dev_private)) > + Note: that dev_private is void * so cast is not required. No need to change the code, but less is more.