From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from invea.invea.cz (invea.invea.cz [89.185.252.10]) by dpdk.org (Postfix) with ESMTP id E05DE8D87 for ; Fri, 4 Sep 2015 12:45:23 +0200 (CEST) Received: from [192.168.51.171] (outfirmy.jic.cz [195.113.224.147]) by invea.invea.cz (Postfix) with ESMTPSA id 86E4E1680A6F for ; Fri, 4 Sep 2015 12:45:23 +0200 (CEST) To: "dev@dpdk.org" From: Jan Fruhbauer Message-ID: <55E97655.9060709@invea.com> Date: Fri, 4 Sep 2015 12:45:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] testpmd - configuration of the fdir filter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2015 10:45:24 -0000 Hi, I want to use the fdir filtering on a NIC based on the Intel 82599. I have tested the testpmd application. I configured masks and added a filter but the fdir filter never matched any packet. I even tried different masks and filters (with/without ports, TCP/UDP flow, IP prefixes, ...), but it never worked. Here is an example of commands I used during testing: ./testpmd -c 0xff -n 2 -- -i --rxq=2 --txq=2 --pkt-filter-mode=perfect --portmask=0x3 --nb-ports=2 --disable-rss testpmd> port stop 0 testpmd> flow_director_mask 0 vlan 0x0000 src_mask 255.255.255.255 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 0xFFFF dst_mask 255.255.255.255 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 0xFFFF testpmd> flow_director_flex_mask 0 flow all (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) testpmd> port start 0 testpmd> flow_director_filter 0 add flow ipv4-tcp src 1.0.0.1 1 dst 2.0.0.1 1 vlan 0x0 flexbytes (0x00,0x00) fwd queue 1 fd_id 1 testpmd> start Then I sent generated traffic (simple packets with ethernet/IP/TCP headers) with parametrs I specified in the flow_director_filter to the NIC port 0 and all packets arrived to the queue 0. Please, could you advise me what I am doing wrong? Maybe some other configuration I didn't notice? Regards, Jan