From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by dpdk.org (Postfix) with ESMTP id AA8971B908 for ; Fri, 8 Feb 2019 20:03:30 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id c25so1985482pgb.4 for ; Fri, 08 Feb 2019 11:03:30 -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=dq2wmLX/Lqa29btaCFsV/6kaTKohD/BG6gQ3moukIpc=; b=e/8a67X+0vtDQqw/7t2uSgr0nuScuvN9Sx+sud6cSvyxecDxWaD4dreln/tpIZz1w6 abWnuf6Rq0X5Sc/E0gEiK5gyp5VaQdVk8tk29G9A+/Igx88EKekW3sUL5mCVlGWT2dL/ RMlKczirHrs0lkOaZ7F8BKvdI+CfIBujw39StoVjKCALiCtFDHMzHXC5tqhe2SM8D6ES o9ZlteyLAPehEi41ccq1JPVUMTz1R5/SA64mKh3lgZjDjeK6J/tjrBCBNuTN1wzFEwGx 2Ok6vXB2SJ4ksh31yUhyyfGrnyxQh0qtYMyRaJfC1LCCNMIt3liucQ2TpZ/TnkEo1l+5 7huw== 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=dq2wmLX/Lqa29btaCFsV/6kaTKohD/BG6gQ3moukIpc=; b=Vi3DKE6B9eXoN153y75/muOS9hKyNjl/7fB7J4tJizOor4SMoS/jqbMRzD0BzFz32g 6OfgacVzjbo0HyBsWEvJvPXGwSsaDqyRD3gS3rGK1Ixh6R5+2NG4uq3Oho97XnUf3XI0 BFQQpSsyJfMiTHTBxScccD3OVkfzHyYzH/owxbKQ9argvk9C963GNtpI5aGfD0qSlPQB 0bViWjs9BxE4Wey6vndaxNNEpQDGVam63tkU/MJHTpFshuAoiayIHmVJpfRbmUV1v6qL V2tkU5hf90A+60oLdM35o3yX+7/a1YdBkORDXWOMtlTZ0t2NC+Annhg6Kv+oS5I80cya 7XNQ== X-Gm-Message-State: AHQUAuYTQRYSeCN5FL36pHTt5R60S2Q9CSFUUPO3kgIxSJE8iftO5aum RuSNrjZypQawz9fLKlAG6LOXNtQ0Aa7SUUrdgTvEzJcs/d23 X-Google-Smtp-Source: AHgI3Ib7W+okchDIBibTyuMqVjFcDKb3rIBurJzAd8lCtFgGwoK61UJ+4LnuRH9cHOlxA8zzFbj8ykq7qiz+xmQ5CtA= X-Received: by 2002:a65:6684:: with SMTP id b4mr7069038pgw.55.1549652609461; Fri, 08 Feb 2019 11:03:29 -0800 (PST) MIME-Version: 1.0 From: Tomasz Czaus Date: Fri, 8 Feb 2019 20:01:53 +0100 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-users] testpmd: Flow Director 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: , X-List-Received-Date: Fri, 08 Feb 2019 19:03:31 -0000 Hello, I try to configure FD in testpmd app (PDK_v18.11.0_LTS) to identify TCP flows (based on destination IPv4 addr and destination TCP port) and route them to specific queues. I start the testpmd on the following way: testpmd \ -c 0xf \ -n 3 \ -- \ --port-topology=chained \ --rxq=8 \ --txq=8 \ --interactive \ --forward-mode=rxonly \ --disable-rss \ --pkt-filter-mode=perfect then: set verbose 5 set fwd rxonly port stop 0 flow_director_mask 0 mode IP vlan 0x0 src_mask 0.0.0.0 0000:0000:0000:0000:0000:0000:0000:0000 0x0000 dst_mask 255.255.255.255 0000:0000:0000:0000:0000:0000:0000:0000 0xFFFF port start 0 flow_director_filter 0 mode IP add flow ipv4-tcp src 0.0.0.0 0 dst 192.168.10.2 9001 tos 0 ttl 64 vlan 0x0 flexbytes (0x08,0x00) fwd pf queue 1 fd_id 1 show port fdir 0 ######################## FDIR infos for port 0 ######################## MODE: PERFECT SUPPORTED FLOW TYPE: ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-tcp ipv6-udp ipv6-sctp ipv6-other FLEX PAYLOAD INFO: max_len: 2 payload_limit: 62 payload_unit: 2 payload_seg: 1 bitmask_unit: 0 bitmask_num: 0 MASK: vlan_tci: 0x0000, src_ipv4: 0x00000000, dst_ipv4: 0xffffffff src_port: 0x0000, dst_port: 0xffff src_ipv6: 0x00000000,0x00000000,0x00000000,0x00000000 dst_ipv6: 0x00000000,0x00000000,0x00000000,0x00000000 FLEX PAYLOAD SRC OFFSET: RAW: 12 13 FLEX MASK CFG: unknown: 00 00 guarant_count: 1 best_count: 0 guarant_space: 2048 best_space: 0 collision: 0 free: 2047 maxhash: 0 maxlen: 0 add: 0 remove: 0 f_add: 0 f_remove: 0 ############################################################################ start on other box (192.168.10.1): telnet 192.168.10.2 9001 which gives the following messages in testpmd app: port 0/queue 0: received 1 packets src=00:1B:21:43:4B:F8 - dst=50:E2:BA:84:8B:40 - type=0x0800 - length=74 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4 L4_TCP - sw ptype: L2_ETHER L3_IPV4 L4_TCP - l2_len=14 - l3_len=20 - l4_len=40 - Receive queue=0x0 ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN port 0/queue 0: received 1 packets src=00:1B:21:43:4B:F8 - dst=50:E2:BA:84:8B:40 - type=0x0800 - length=74 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4 L4_TCP - sw ptype: L2_ETHER L3_IPV4 L4_TCP - l2_len=14 - l3_len=20 - l4_len=40 - Receive queue=0x0 ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN Pkts are routed to queue id 0, instead 1. Any ideas? Best regards, -t