summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimei Su <simei.su@intel.com>2019-10-21 20:06:50 +0800
committerXiaolong Ye <xiaolong.ye@intel.com>2019-10-21 22:18:00 +0800
commitc7a7887eff15ccc09b3960095f178b551c86bec1 (patch)
tree03847c10c79eaa3a97e2b8d9a25801f9e1217b6b
parent1fcc7dc80f39bb5fb7931a456b6eb4adc1156619 (diff)
downloaddpdk-next-net-intel-c7a7887eff15ccc09b3960095f178b551c86bec1.zip
dpdk-next-net-intel-c7a7887eff15ccc09b3960095f178b551c86bec1.tar.gz
dpdk-next-net-intel-c7a7887eff15ccc09b3960095f178b551c86bec1.tar.xz
net/ice: add RSS configuration for gtpu/pppoe
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>
-rw-r--r--drivers/net/ice/ice_ethdev.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index e4fd5bc..49d00bd 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2463,6 +2463,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;
}