From: Viswanath Alikonda <viswanath.alikonda@calsoftlabs.com>
To: dev@dpdk.org
Subject: [dpdk-dev] Using flow director to distrbute vlan traffic
Date: Tue, 25 Mar 2014 17:24:30 +0530 (IST) [thread overview]
Message-ID: <145158385.29134.1395748470702.JavaMail.root@linmail> (raw)
In-Reply-To: <1543825346.28747.1395748063246.JavaMail.root@linmail>
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
next parent reply other threads:[~2014-03-25 12:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1543825346.28747.1395748063246.JavaMail.root@linmail>
2014-03-25 11:54 ` Viswanath Alikonda [this message]
2014-03-25 14:59 ` Richardson, Bruce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=145158385.29134.1395748470702.JavaMail.root@linmail \
--to=viswanath.alikonda@calsoftlabs.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).