From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 52ABAA052B for ; Fri, 31 Jul 2020 01:55:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC97B1C00D; Fri, 31 Jul 2020 01:55:22 +0200 (CEST) Received: from mx0a-00000d04.pphosted.com (mx0a-00000d04.pphosted.com [148.163.149.245]) by dpdk.org (Postfix) with ESMTP id 536531BFDA for ; Thu, 23 Jul 2020 19:37:49 +0200 (CEST) Received: from pps.filterd (m0102889.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06NHUocV006603 for ; Thu, 23 Jul 2020 10:37:48 -0700 Received: from mx0b-00000d03.pphosted.com (mx0b-00000d03.pphosted.com [148.163.153.234]) by mx0a-00000d04.pphosted.com with ESMTP id 32bxdapb79-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jul 2020 10:37:48 -0700 Received: from pps.filterd (m0214089.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06NHYJ39008087 for ; Thu, 23 Jul 2020 10:37:46 -0700 Received: from mx0b-00000d06.pphosted.com (mx0b-00000d06.pphosted.com [148.163.139.119]) by mx0a-00000d03.pphosted.com with ESMTP id 32c096790b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jul 2020 10:37:46 -0700 Received: from pps.filterd (m0167938.ppops.net [127.0.0.1]) by mx0b-00000d06.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06NHa3vf013707 for ; Thu, 23 Jul 2020 10:37:46 -0700 Received: from smtp.stanford.edu (smtp4.stanford.edu [171.67.219.72]) by mx0b-00000d06.pphosted.com with ESMTP id 32bxsnxc3v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jul 2020 10:37:46 -0700 Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: gerryw) by smtp.stanford.edu (Postfix) with ESMTPSA id A0A42224F4 for ; Thu, 23 Jul 2020 10:37:45 -0700 (PDT) Received: by mail-oo1-f45.google.com with SMTP id y4so1267288oov.6 for ; Thu, 23 Jul 2020 10:37:45 -0700 (PDT) X-Gm-Message-State: AOAM531A9prCS2uyHzOEtaeaIAq27wN54O/u/OGFRpBwQMhEluuyxDqn 6SfrNwrbyzn1gXknz8wbCua9M46WYA0LC82KwNg= X-Google-Smtp-Source: ABdhPJy4PZXVg77b3qCIUCvsO4b69vdzJVUjw/7Q5AAkCnRyxwFkO8ECnsaLro1IUwM0RvM2EY4ZWtMC91QiVk8iyF4= X-Received: by 2002:a4a:a21d:: with SMTP id m29mr5496463ool.17.1595525863894; Thu, 23 Jul 2020 10:37:43 -0700 (PDT) MIME-Version: 1.0 From: Gerry Wan Date: Thu, 23 Jul 2020 10:37:33 -0700 X-Gmail-Original-Message-ID: Message-ID: To: users@dpdk.org x-proofpoint-stanford-dir: outbound X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-23_09:2020-07-23, 2020-07-23 signatures=0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-23_09:2020-07-23, 2020-07-23 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 bulkscore=0 adultscore=100 suspectscore=0 malwarescore=0 clxscore=1011 mlxscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007230128 X-Mailman-Approved-At: Fri, 31 Jul 2020 01:55:19 +0200 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] COUNT action not supported on mlx5 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hello, 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 mlx5 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-2.1.8.0, with a ConnectX-5 Virtual Function (could the VF be the issue?). What can be the cause of this? On a related note, is there any plan for mlx5 to support RTE_FLOW_ITEM_TYPE_RAW? Thanks,