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 AD430A04FB; Thu, 26 Dec 2019 03:14:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFB761BF7A; Thu, 26 Dec 2019 03:14:19 +0100 (CET) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) by dpdk.org (Postfix) with ESMTP id EFEE31BF6F for ; Thu, 26 Dec 2019 03:14:17 +0100 (CET) Received: by mail-il1-f178.google.com with SMTP id v69so19214000ili.10 for ; Wed, 25 Dec 2019 18:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SMo4tk7yq8/VRp8c+DgNK0tqZG5DCNc9bik0eiLWq1M=; b=feqp34XjFKn2bA6lTcfHxLqXr+efvBY3bPbU0jWpRZXJH17ZpTgI5K/6D2QrHSa7fm 1sP5pc1MosfauK87tnSByrMKNv7Vb52LwstORExcH8iEYf5v4Erhd3ACtt3HyqqUAnhg USmuPMjHg5kkQoGozVxOWV0mCIVG1MRSXX1Wf+j+WqLQ9j2p5RnK46mVSiN8+X2pw0NM J/fhB4zDIG9pk+8BwLl3jKJLVGjCF/eTO02VTkTCuRKjLGWsHL7X/61jEXGmW3tN+dma nwSil6QG31FRERSFZixCmQwxgOhlqFMRf9juVesieYJ2hxcxeKd4eS+bUTmTSH5W5TSQ zd4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SMo4tk7yq8/VRp8c+DgNK0tqZG5DCNc9bik0eiLWq1M=; b=U7jlQcsWM30jmqGFesWCPMJEffXVPe/LqLOqioECQKK9+hc6Pdmr4tvFQ0g1QYZ8N4 Pmjfpvjn0mvCinSKgzjuFnpcTbBiRJs9RHQj6Mgoyh32VwxrVdXc2IiSUy5HoBfcuM/D GAvLrUcJoL/bDO+XmgehrwipcmhZ8xZyIZ+RKGGsCJS55ylshjmNoFR0jAvPM+v3BGQ1 YnVZO4FHM44t9WaglqTz8TR6pSR4Uw0WD/l3MtmxHPUSFXl8h6GjPyc2wIBeNQpzbyiQ ykjMOwcVuQRPngSyIRVPnh7iaDahEn0gnFHm2KsYAnCDSBnWKoBjjM3AT59xz0RxSTUL d4hw== X-Gm-Message-State: APjAAAX1BsTzx22VhVUFEm+naxQHIZkpsN+v5crwv7K/bZUlxCt6Ife3 oFfnNj5YXAQPMbq3QAlyK5pZMgAEgrSxmEvlnvsuqRnV X-Google-Smtp-Source: APXvYqy+fIlENIAwzMq5q+J1Rkwc7Tqf9AZwgNg9tnJlG5dLM7w4Rk4IVVgHmUEyTT8dDtFH0mebS4m4tNXHEuxiEbY= X-Received: by 2002:a92:5a16:: with SMTP id o22mr37810316ilb.229.1577326456975; Wed, 25 Dec 2019 18:14:16 -0800 (PST) MIME-Version: 1.0 From: Qi Zhang Date: Thu, 26 Dec 2019 10:14:04 +0800 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Cannot write fdir filter successfully X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, I would like to use the flow director (on 82599) to steer packets to individual queues. However, I couldn't write a flow filter rule to the NIC. I have tried both the perfect filter and the signature one. Unfortunately, neither of them could work. The error is: fdir_write_perfect_filter_82599(): Timeout writing flow director filter, or fdir_add_signature_filter_82599(): Timeout writing flow director filter. The OS on my server is ubuntu 16.04, the DPDK version is 18.11 the filter configure I am using is as follows: struct rte_eth_fdir_filter ff; memset(&ff, 0, sizeof(struct rte_eth_fdir_filter)); ff.input.flow.tcp4_flow.ip.dst_ip = 0xA040EC7 ff.input.flow.tcp4_flow.dst_port = 0x1A0A ff.action.report_status = RTE_ETH_FDIR_REPORT_ID; ff.action.behavior = RTE_ETH_FDIR_ACCEPT; ff.action.rx_queue = 1; ret = rte_eth_dev_filter_ctrl(port_id, RTE_ETH_FILTER_FDIR, RTE_ETH_FILTER_ADD, &ff); I am not sure where the problem is. Could you help me out? Thanks.