From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from linmail.cswl.com (linmail.calsoftlabs.com [182.73.72.40]) by dpdk.org (Postfix) with ESMTP id 8D9CC58D5 for ; Tue, 25 Mar 2014 13:02:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by linmail.cswl.com (Postfix) with ESMTP id 81E828E202E9 for ; Tue, 25 Mar 2014 17:24:35 +0530 (IST) Received: from linmail.cswl.com ([127.0.0.1]) by localhost (linmail.cswl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TAx45fIO2ZoG for ; Tue, 25 Mar 2014 17:24:30 +0530 (IST) Received: from linmail.cswl.com (linmail.cswl.com [10.1.0.6]) by linmail.cswl.com (Postfix) with ESMTP id CCD898E202E4 for ; Tue, 25 Mar 2014 17:24:30 +0530 (IST) Date: Tue, 25 Mar 2014 17:24:30 +0530 (IST) From: Viswanath Alikonda To: dev@dpdk.org Message-ID: <145158385.29134.1395748470702.JavaMail.root@linmail> In-Reply-To: <1543825346.28747.1395748063246.JavaMail.root@linmail> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [182.71.244.130] X-Mailer: Zimbra 7.1.4_GA_2555 (ZimbraWebClient - FF3.0 (Linux)/7.1.4_GA_2555) Subject: [dpdk-dev] Using flow director to distrbute vlan traffic 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: Tue, 25 Mar 2014 12:02:49 -0000 Hi, I am using DPDK 1.4 and trying to distribute traffic based on (IP,vlan). I expect the traffic of (IP,vlan) goes to one core. The code looks like this: struct rte_fdir_masks fdir_masks; struct rte_fdir_filter fdir_filter; memset(&fdir_masks, 0, sizeof(struct rte_fdir_masks)); fdir_masks.src_ipv4_mask = HHIP_MASK; memset(&fdir_filter, 0, sizeof(struct rte_fdir_filter)); fdir_filter.iptype = RTE_FDIR_IPTYPE_IPV4; fdir_masks.only_ip_flow = 0; rte_eth_dev_fdir_set_masks(port, &fdir_masks); fdir_filter.l4type = RTE_FDIR_L4TYPE_NONE; fdir_filter.ip_src.ipv4_addr = map[i].hh_lan_ip; fdir_filter.vlan_id = map[i].vlan_id; err = rte_eth_dev_fdir_add_signature_filter(port, &fdir_filter, 1 + map[i].core); In DPDK 1.4, the vlan is stripped while filtering itself. But, I am unable to distribute it to the particular core. Can anyone through some light on this. Thanks & Regards, Viswanath