From mboxrd@z Thu Jan 1 00:00:00 1970 From: Navneet Rao Subject: Re: testpmd - configuration of the fdir filter Date: Fri, 11 Sep 2015 11:45:22 -0700 (PDT) Message-ID: <7050d5b8-8044-4ca3-babd-8513bd3f881a@default> References: <55E97655.9060709@invea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable To: Jan Fruhbauer , dev@dpdk.org Return-path: Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by dpdk.org (Postfix) with ESMTP id 4916A255 for ; Fri, 11 Sep 2015 20:45:28 +0200 (CEST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" I'm getting a fdir filter programming error after I do this -- =20 =20 ./testpmd -c ffffffff -n 4 -- -i --pkt-filter-mode=3Dperfect --rxq=3D2 --tx= q=3D2 --portmask=3D0x3 --nb-ports=3D2 --disable-rss =20 testpmd> port stop all testpmd> flow_director_mask 0 vlan 0xefff src_mask 255.255.255.255 FFFF:= FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 0xFFFF dst_mask 255.255.255.255 FFFF:FFF= F:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 0xFFFF testpmd> flow_director_filter 0 add flow ipv4-udp src 192.168.10.100 dst= 192.168.10.101 vlan 0x1 flexbytes (0x00,0x00) fwd queue 1 fd_id 1 PMD: fdir_write_perfect_filter_82599(): Rx Queue=3D1 hash=3D10529 PMD: fdir_write_perfect_filter_82599(): Timeout writing flow director fi= lter. PMD: ixgbe_add_del_fdir_filter(): Fail to add FDIR filter! flow director programming error: (Connection timed out) =20 =20 Any ideas? Debug? =20 Thanks -Navneet =20 =20 =20 =20 -----Original Message----- From: Navneet Rao=20 Sent: Wednesday, September 09, 2015 10:26 AM To: Jan Fruhbauer Subject: RE: [dpdk-dev] testpmd - configuration of the fdir filter =20 Hello Jan: =20 Please let me know if you were able to figure this out... I am also running into similar issues!!! =20 Thanks -Navneet =20 =20 -----Original Message----- From: Jan Fruhbauer [mailto:fruhbauer@invea.com]=20 Sent: Friday, September 04, 2015 3:46 AM To: HYPERLINK "mailto:dev@dpdk.org"dev@dpdk.org Subject: [dpdk-dev] testpmd - configuration of the fdir filter =20 Hi, =20 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 t= he fdir filter never matched any packet. I even tried different masks and f= ilters (with/without ports, TCP/UDP flow, IP prefixes, ...), but it never w= orked. Here is an example of commands I used during testing: =20 ./testpmd -c 0xff -n 2 -- -i --rxq=3D2 --txq=3D2 --pkt-filter-mode=3Dperfec= t --portmask=3D0x3 --nb-ports=3D2 --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 FFF= F: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 =20 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. =20 Please, could you advise me what I am doing wrong? Maybe some other configu= ration I didn't notice? =20 Regards, Jan =20