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 0CFEC45E6B for ; Tue, 10 Dec 2024 17:58:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C488B40288; Tue, 10 Dec 2024 17:58:03 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id C5F834026E for ; Tue, 10 Dec 2024 17:58:01 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2ef70c7efa5so3088509a91.2 for ; Tue, 10 Dec 2024 08:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1733849881; x=1734454681; 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=pdETw6Ck/ocboUA8Fe2kgIGSymmNge+HGxrDJAFeQ60=; b=L8mGRNYZm2PZ+vt4UnpjtFM9n2mGPf/fs7IN/roGEuCUH1Is65UxFlJ+4mjEj7asTi dwmtOU6uqfc5wvLt7WR0u7yVUchAMw7xFkzrgYpF8dWBJfoVuTtSX9fpQwoTXsF5Dqs/ 7526tLyt5irLheY9ahwIcMBfME1rV/HBQrdebbd8Q0Lzg5uiFG5YgrE3aU4b11EUVB2A fDxShVSLiddZeYNDG+EeB2wRb4Lc8N9y4pL4rEwf8iycb8DlNgTzCAXDrnj/qynsKFWG VWzDNvi9fhjwGr4ihJiY4TrFLbmh5Rz+CN2ew6jnfvOXEsJUWtLKLtdEVL4YnWIncEUB lrdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733849881; x=1734454681; 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=pdETw6Ck/ocboUA8Fe2kgIGSymmNge+HGxrDJAFeQ60=; b=ssKW/gBg2DhwD9fH9Bsb5cLHTBDdUf847uauaN6x2EDhF2nKruSOHMjnBJdU910fNn bTlxAalFv571Pph6MaPKHwhkg8j4IjjPMyS2+IJGHHOW3XfxsTYwaHjjiHhMXbFym20l lUkftrzYZXHxp11535EU8c6gcojJcp/d/owGESuMpEpQKC0zZ1Iz9EcDp4qN+fvl6UL0 BVY+937cML4P+f0jjeAQ78rc7GAsajfch1OGLGsTryWysYMUuZ4D7MlBfFGzOEcJ87+5 wmuvDsHb7SLAPcD2Y82vbcFxiVc2YkeMpeooCXQTdmXtsuFRLms/dBN6TiEQ+oPtq0gu NAxw== X-Forwarded-Encrypted: i=1; AJvYcCW1tUSrwgv8B+P2JEOvEsVCxUf48lTk8raA0FyHvY9ffSdvycwt7bAbXRrPMs+82om85F7jkg==@dpdk.org X-Gm-Message-State: AOJu0Yw3MyMiDpTq2Ew/j3J+8jbx4B/E9EEKFrrw02yA+HZGBMkaqGbz Vgn+5wp26PRtpED/cnUzkUR4DndR4l8OJ5itCZGLVq7g/P1GUnVkx1aLyfzTY3A1i7vs6bQ03i8 Z X-Gm-Gg: ASbGnctSGEkG2Fk1yovsduDIJwJXZB5Fqnxgiekr57ds1uTWQgr5uWKYuOlJMmwO3fh D3/qhb3y22H8trSAi8MXlUzgz2aCe5SKZA+BLSShCIQRUrFoNZBzRUxMhbWPzECWyaGun2NVSAK Vsn1W06aShtce6Ka2QCn1YfxHGNfQ/5Ng+cv0MIu+QopmrhPt75UZHpTM8VA9Si/auX+XV88bd4 INYJ/FkTMsInGWzCF6Y0w/DH5CSQmsgMuvP6xjqJB8dRAAp5A1yUAVGFkMyPjNNLPVacaKpMtAM fqgx0GY0toHQ61A2UlQftomKTEZHgVw= X-Google-Smtp-Source: AGHT+IE3pPnPLsy38PVyyFjrGCOUge1lm3JujtuSiS1gj7/83Szrb/7y/RjO6fUcaDVOYSQHsRSQ7Q== X-Received: by 2002:a17:90b:1f88:b0:2ee:7a4f:9265 with SMTP id 98e67ed59e1d1-2efcf13f43bmr8710534a91.15.1733849880778; Tue, 10 Dec 2024 08:58:00 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ef87cb73bfsm6374879a91.33.2024.12.10.08.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 08:58:00 -0800 (PST) Date: Tue, 10 Dec 2024 08:57:58 -0800 From: Stephen Hemminger To: Patrick Mahan Cc: Oleksandr Nahnybida , users@dpdk.org Subject: Re: Expectations of an RX mbuf when using virtio PMD Message-ID: <20241210085758.40fa0050@hermes.local> In-Reply-To: <256fdd95-68a1-4fb8-972b-f3d08935ed0e@mahan.org> References: <256fdd95-68a1-4fb8-972b-f3d08935ed0e@mahan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, 7 Dec 2024 21:10:39 -0800 Patrick Mahan wrote: > On 12/7/24 3:58 PM, Oleksandr Nahnybida wrote: > > Hello Patrick, > >=20 > > You can use=C2=A0rte_net_get_ptype function directly if packet_type is = RTE_PTYPE_UNKNOWN. > > Whether the packet_type=C2=A0value is set is PMD/NIC dependent. > > i40e does this at the hardware=C2=A0level, virtio does this in software= with=20 > > rte_net_get_ptype and only in the specific case. > > =20 >=20 > Thanks for the suggestion, I guess I was spoiled by the PMD setting it fo= r me=20 > that I expected it was a basic function of the PMD. Most code doesn't use ptype, and reading the packet data to determine the type would slow down tests like basic forwarding