From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viswanath Alikonda Subject: Using flow director to distrbute vlan traffic Date: Tue, 25 Mar 2014 17:24:30 +0530 (IST) Message-ID: <145158385.29134.1395748470702.JavaMail.root@linmail> References: <1543825346.28747.1395748063246.JavaMail.root@linmail> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1543825346.28747.1395748063246.JavaMail.root@linmail> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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