DPDK usage discussions
 help / color / mirror / Atom feed
From: Gerry Wan <gerryw@stanford.edu>
To: users@dpdk.org
Subject: [dpdk-users] COUNT action not supported on mlx5
Date: Mon, 27 Jul 2020 11:11:45 -0700	[thread overview]
Message-ID: <CAAcwi3-z4Ypnx2Nw5EbTA7daO8OvjJqi7ixgQbfsa_-V-X_bHw@mail.gmail.com> (raw)


I'm trying to query per-flow statistics using RTE_FLOW_ACTION_TYPE_COUNT on
a Mellanox ConnectX-5 port. I tried extending the flow_filtering sample
application with:

struct rte_flow_query_count count = {
    .reset = 1,
    .hits_set = 1,
    .bytes_set = 1,
    .hits = 0,
    .bytes = 0,

// set attr, pattern, etc.

action[0].type = RTE_FLOW_ACTION_TYPE_COUNT;
action[0].conf = &count;
action[1].type = RTE_FLOW_ACTION_TYPE_QUEUE;
action[1].conf = &queue;
action[2].type = RTE_FLOW_ACTION_TYPE_END;

The call to rte_flow_validate() returns with -ENOTSUP, saying the flow
cannot be created because the count action is not supported. However, mlx5
documentation (https://doc.dpdk.org/guides/nics/mlx5.html#statistics)
states that it does indeed support attaching count actions. Without the
count action the flow rule configuration works fine.

I am using DPDK-20.05 and MLNX_OFED_LINUX-5.0-, with a ConnectX-5
Virtual Function (could the VF be the issue?). What can be the cause of

On a related note, is there any plan for mlx5 to support


             reply	other threads:[~2020-07-27 18:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 18:11 Gerry Wan [this message]
2020-07-27 18:24 ` Erez Ferber
2020-07-29 15:26   ` Asaf Penso
2020-07-29 21:52     ` Gerry Wan
  -- strict thread matches above, loose matches on Subject: below --
2020-07-23 17:37 Gerry Wan

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:

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

  git send-email \
    --in-reply-to=CAAcwi3-z4Ypnx2Nw5EbTA7daO8OvjJqi7ixgQbfsa_-V-X_bHw@mail.gmail.com \
    --to=gerryw@stanford.edu \
    --cc=users@dpdk.org \


* 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).