From: Simei Su <simei.su@intel.com>
To: qi.z.zhang@intel.com, beilei.xing@intel.com, xiaolong.ye@intel.com
Cc: dev@dpdk.org, simei.su@intel.com
Subject: [dpdk-dev] [PATCH v6 1/2] net/ice: add RSS configuration for gtpu/pppoe
Date: Thu, 17 Oct 2019 06:16:01 +0800 [thread overview]
Message-ID: <1571264162-14201-2-git-send-email-simei.su@intel.com> (raw)
In-Reply-To: <1571264162-14201-1-git-send-email-simei.su@intel.com>
This patch adds rss support for gtpu with input set teid and
pppoe/pppod with input set source mac and session id.
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
---
drivers/net/ice/ice_ethdev.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index dc4d1e6..2db0f9a 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2306,6 +2306,23 @@ static int ice_init_rss(struct ice_pf *pf)
PMD_DRV_LOG(ERR, "%s SCTP_IPV4 rss flow fail %d",
__func__, ret);
+ /* configure RSS for gtpu with input set TEID */
+ ret = ice_add_rss_cfg(hw, vsi->idx, ICE_FLOW_HASH_GTP_U_IPV4_TEID,
+ ICE_FLOW_SEG_HDR_GTPU_IP, 0);
+ if (ret)
+ PMD_DRV_LOG(ERR, "%s GTPU_TEID rss flow fail %d",
+ __func__, ret);
+
+ /**
+ * configure RSS for pppoe/pppod with input set
+ * Source MAC and Session ID
+ */
+ ret = ice_add_rss_cfg(hw, vsi->idx, ICE_FLOW_HASH_PPPOE_SESS_ID_ETH,
+ ICE_FLOW_SEG_HDR_PPPOE, 0);
+ if (ret)
+ PMD_DRV_LOG(ERR, "%s PPPoE/PPPoD_SessionID rss flow fail %d",
+ __func__, ret);
+
return 0;
}
--
1.8.3.1
next prev parent reply other threads:[~2019-10-17 13:21 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1567866291-268287-1-git-send-email-simei.su@intel.com>
2019-09-09 14:56 ` [dpdk-dev] [PATCH v2] net/ice: enable advanced RSS Simei Su
2019-09-12 16:19 ` Ye Xiaolong
2019-09-16 1:47 ` Su, Simei
2019-09-19 5:15 ` [dpdk-dev] [PATCH v3] " Simei Su
2019-09-27 9:53 ` [dpdk-dev] [PATCH v4 0/2] " Simei Su
2019-09-27 9:53 ` [dpdk-dev] [PATCH v4 1/2] net/ice: add RSS configuration for gtpu/pppoe Simei Su
2019-09-27 9:53 ` [dpdk-dev] [PATCH v4 2/2] net/ice: enable advanced RSS Simei Su
2019-09-29 10:30 ` [dpdk-dev] [PATCH v5 0/2] " Simei Su
2019-09-29 10:30 ` [dpdk-dev] [PATCH v5 1/2] net/ice: add RSS configuration for gtpu/pppoe Simei Su
2019-09-29 10:30 ` [dpdk-dev] [PATCH v5 2/2] net/ice: enable advanced RSS Simei Su
2019-09-30 0:28 ` [dpdk-dev] [PATCH v5 0/2] " Zhang, Qi Z
2019-10-16 22:16 ` [dpdk-dev] [PATCH v6 " Simei Su
2019-10-16 22:16 ` Simei Su [this message]
2019-10-16 22:16 ` [dpdk-dev] [PATCH v6 2/2] " Simei Su
2019-10-20 2:14 ` [dpdk-dev] [PATCH v7 0/2] " Simei Su
2019-10-20 2:14 ` [dpdk-dev] [PATCH v7 1/2] net/ice: add RSS configuration for gtpu/pppoe Simei Su
2019-10-20 2:14 ` [dpdk-dev] [PATCH v7 2/2] net/ice: enable advanced RSS Simei Su
2019-10-21 12:06 ` [dpdk-dev] [PATCH v8 0/3] " Simei Su
2019-10-21 12:06 ` [dpdk-dev] [PATCH v8 1/3] net/ice: add RSS configuration for gtpu/pppoe Simei Su
2019-10-21 12:06 ` [dpdk-dev] [PATCH v8 2/3] net/ice: change one member type of the pattern structure Simei Su
2019-10-21 14:16 ` Ye Xiaolong
2019-10-21 17:30 ` Ferruh Yigit
2019-10-21 12:06 ` [dpdk-dev] [PATCH v8 3/3] net/ice: enable advanced RSS Simei Su
2019-10-21 17:30 ` Ferruh Yigit
2019-10-22 2:04 ` Ye Xiaolong
2019-10-21 14:24 ` [dpdk-dev] [PATCH v8 0/3] " Ye Xiaolong
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=1571264162-14201-2-git-send-email-simei.su@intel.com \
--to=simei.su@intel.com \
--cc=beilei.xing@intel.com \
--cc=dev@dpdk.org \
--cc=qi.z.zhang@intel.com \
--cc=xiaolong.ye@intel.com \
/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).