From: Simei Su Date: Mon, 21 Oct 2019 12:06:50 +0000 (+0800) Subject: net/ice: add RSS configuration for GTPU/PPPoE X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=44c63fcbd9c30d9d11dc40744bb25ebda8ae1c0f;p=dpdk.git 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 Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index e4fd5bc2a9..49d00bd7d8 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; }