DPDK usage discussions
 help / color / mirror / Atom feed
From: Antoine POLLENUS <a.pollenus@deltacast.tv>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Flow filtering issues : not deleted on NIC at time of call rte_flow_destroy
Date: Fri, 8 Jul 2022 07:21:50 +0000	[thread overview]
Message-ID: <f505e998e2e54b649ffe351b7b884214@deltacast.tv> (raw)

[-- Attachment #1: Type: text/plain, Size: 1053 bytes --]

Hello,

We have some issues with the flow filtering API.

When deleting a filter, just after rte_flow_destroy, we clear the received packets by receiving all packet in that mempool.
The issue is that the nic still receive packet in that mempool after the rte_flow_destroy is done.
We than reuse this mempool to receive packet from a different origin, and we see that this mempool still have packet from the previous origin.

The filter we use is simply a queue one based on the IP and the UDP dst and src.

The questions are:
- Is the rte_flow_destroy asynchronous on the NIC ? we see the filter doesn't exist anymore in DPDK.
- If yes, is there a way to know when the filter is effectively deleted on the NIC ?
- Is there a way to reset the mempool in a clean way without deleting it ?

At this stage to avoid this issue the only fix we found is to sleep during one second after the call of rte_flow_destroy and then receiving the remaining packets still present in mempool.

Hope I'll find help here,

Regards,

Antoine Pollenus

[-- Attachment #2: Type: text/html, Size: 9537 bytes --]

                 reply	other threads:[~2022-07-08  7:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=f505e998e2e54b649ffe351b7b884214@deltacast.tv \
    --to=a.pollenus@deltacast.tv \
    --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).