DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Sridhar Pothuganti <sridhar.pothuganti@nxp.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: Facing an issue with eth RX/TX call backs
Date: Mon, 17 Oct 2022 08:01:05 -0700	[thread overview]
Message-ID: <20221017080105.0186238a@hermes.local> (raw)
In-Reply-To: <PAXPR04MB942270296263242970A8ECD989299@PAXPR04MB9422.eurprd04.prod.outlook.com>

On Mon, 17 Oct 2022 04:42:54 +0000
Sridhar Pothuganti <sridhar.pothuganti@nxp.com> wrote:

> Hello All,
> 
> I am trying to use the "dpdk-pdump" application to capture the packets. The pdump library is registering the RX/TX callbacks, but the callback pointer is getting NULL in the RX/TX function during packet transmission.
> 
> The callbacks are set using the function "rte_eth_add_tx_callback" and the code is using GCC atomic built-in "__atomic_store_n" with memory order "__ATOMIC_RELEASE".
> 
> In the "rte_eth_tx_burst" the same pointer is being read using "__atomic_load_n" with memory order "__ATOMIC_RELAXED".
> 
> I have gone through the code, and the "pre_tx_burst_cbs" is not being cleared no where else except "rte_eth_remove_tx_callback". But this function is not being called till the termination of pdump application.
> 
> Can someone please point me to where am I missing?
> 
> Regards,
> Sridhar
> 

Are you using primary/secondary process model for pdump?

Can you run your application under gdb?
If so, check the callback after pdump sets it up.
Then add memory watchpoint to see where it gets cleared.

      reply	other threads:[~2022-10-17 15:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17  4:42 Sridhar Pothuganti
2022-10-17 15:01 ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221017080105.0186238a@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=sridhar.pothuganti@nxp.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).