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 14F0841E0D for ; Tue, 7 Mar 2023 23:08:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8530940ED6; Tue, 7 Mar 2023 23:08:22 +0100 (CET) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by mails.dpdk.org (Postfix) with ESMTP id 9BFE74067B for ; Tue, 7 Mar 2023 23:08:21 +0100 (CET) Received: by mail-yb1-f182.google.com with SMTP id k23so12883653ybk.13 for ; Tue, 07 Mar 2023 14:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678226900; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=itFqolT04tcyqdKimRMH2PVDVze/BK13J5GPwfWjPmE=; b=d8s7tMPg+eG/tyPOwV+KzmFuhy31qWyHsq6y0XMFyXTTFE6+YOClcCtqyqt6QsI2iJ 6TLP269hwF1nmNpF4hgvAXpLzazIqi8R6das7OhPQeUIaJRVCR8B1cG68v2j8FWUOrI4 mmB5CSp8aGg/Egl1IDW0kKQWPZYO6IeEIZm3AMRKWOIf9JFnp19LfROXR4H2VMeVR1Ob 408uqAfBTjNEUFqHK3ePxH6pSmkpcMRV5THH2eZodreHgYlRu+hzK49AVAo63X4uoX+I aWL9i8NE3s1HMNyZMyEQTNlPcbMNh9s11a1MRWdsNpNPDorUfMGshK/1C8iMkGKGo6oy iieg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678226900; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=itFqolT04tcyqdKimRMH2PVDVze/BK13J5GPwfWjPmE=; b=arv5zn0hdVms+VHx64Spxq5IoCd5TD2u6zXqL0FpycdLZMsqzgYKauvRqOem3QIkfK j3UXvk/6T99TWTAWcD9KsG5zk0q+EywmoLfHE7ct7xreUU2ikqJDOU2oylx5cW1Anu/t hpoFCZBbPsbZKrZp83KtXfiaiBkJ/obDxMG6A+9dDP0PNAyvK8wa6VL6M3ZQmuq6sQOL i5RoDnXzgO1FIAViBnQlNRNcOQ4zeFPOdKMsCxghdQNOx2+/0tIHdBjtQ9wkQkVWmNwi cjvOIUe4qhmdWQSxQSpIBwi4Y0dkeI3a+KgxTLQMz5BTpgwJc3nnKYFaVeiRmlMFOCVO gK5g== X-Gm-Message-State: AO0yUKXGoRmnrgHJBn3HFvkyQ00unsiEOoPrSqv39DtBYnEZ5cIXq5+6 pL++LxivP8YyHOP6FmBqRicwxpamUVJonp+DWwfhrpsWfCI3fg== X-Google-Smtp-Source: AK7set87S+Po+IE8s+O+Ta/1N7AuBNuJu1duHC6rgi08AKw13CJiwvG1CRcCXaZ4u8+G9oMEUcfV77iQh2cPKUdn788= X-Received: by 2002:a05:6902:524:b0:9f1:7c28:4925 with SMTP id y4-20020a056902052400b009f17c284925mr7777852ybs.9.1678226900581; Tue, 07 Mar 2023 14:08:20 -0800 (PST) MIME-Version: 1.0 From: fwefew 4t4tg <7532yahoo@gmail.com> Date: Tue, 7 Mar 2023 17:07:41 -0500 Message-ID: Subject: Callback or hook into completion queues? To: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000043019005f656a68e" 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 --00000000000043019005f656a68e Content-Type: text/plain; charset="UTF-8" Once I call rte_eth_tx_burst() (Mellanox Connect5-LX) is there a way to inspect or get a callback when transmitted packets go into the NIC's completion queue? This is related to the earlier question on timestamping with rdtsc(). Ideally I'd take the timestamp as soon (close) to the time the packet is on the wire. I've looked at tx callbacks however this is invoked as the packet is about to go into the "hardware queue for transmission" meaning there's lot's of work + serialization of packet's data to electrical signals at NIC bandwidth to come before the packet is on the wire. The ideal time to get run rdtsc() is when the NIC delivers a completion event to a CQ for packets sent. Presumably there's something in the mlx5 driver or perhaps DMA library to do this? --00000000000043019005f656a68e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Once I call=C2=A0rte_eth_tx_burst() (Mellanox Connect5-LX) is there a wa= y to inspect or get a callback when transmitted packets go into the NIC'= ;s completion queue?

This is related to the earlier question on time= stamping with rdtsc(). Ideally I'd take the timestamp as soon (close) t= o the time the packet is on the=C2=A0wire.=C2=A0

I've looked at = tx callbacks however this is invoked as the packet is about to go into the = "hardware queue for transmission" meaning there's lot's o= f work=C2=A0+ serialization of packet's data to electrical signals at N= IC bandwidth to come before the packet is on the wire.

The ideal tim= e to get run rdtsc() is when the NIC delivers a completion event=C2=A0to a = CQ for packets sent.=C2=A0

Presumably=C2=A0there's something in = the mlx5 driver or perhaps DMA library to do this?


--00000000000043019005f656a68e--