From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 44675A0096 for ; Thu, 6 Jun 2019 23:45:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F96B1B959; Thu, 6 Jun 2019 23:45:37 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id 9E6631B957 for ; Thu, 6 Jun 2019 23:45:35 +0200 (CEST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x56LgegH048479; Thu, 6 Jun 2019 17:45:34 -0400 Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sy97fct9n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jun 2019 17:45:34 -0400 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x56LVM9M000446; Thu, 6 Jun 2019 21:34:46 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma01dal.us.ibm.com with ESMTP id 2swybydsd5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jun 2019 21:34:46 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x56LjWio25624910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jun 2019 21:45:32 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 381A5136011; Thu, 6 Jun 2019 21:45:32 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED875136017; Thu, 6 Jun 2019 21:45:31 +0000 (GMT) Received: from opperfx2.aus.stglabs.ibm.com (unknown [9.40.200.237]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 6 Jun 2019 21:45:31 +0000 (GMT) From: David Christensen To: keith.wiles@intel.com Cc: dev@dpdk.org, David Christensen Date: Thu, 6 Jun 2019 17:45:22 -0400 Message-Id: <1559857522-339-1-git-send-email-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-06_14:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=654 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906060146 Subject: [dpdk-dev] [PATCH] pktgen: enable RSS on versions of DPDK after 18.05 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When backwards compatibility was added for earlier releases of DPDK, default enablement of RSS was lost for versions of DPDK after 18.05. This change restores the old behavior and enables RSS by default. Fixes: ae81c62f194c ("backward compat to 18.02 at least") Cc: keith.wiles@intel.com Signed-off-by: David Christensen --- app/pktgen-port-cfg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/pktgen-port-cfg.c b/app/pktgen-port-cfg.c index fb2873e..b5bded7 100644 --- a/app/pktgen-port-cfg.c +++ b/app/pktgen-port-cfg.c @@ -64,6 +64,12 @@ static struct rte_eth_conf default_port_conf = { .offloads = DEV_RX_OFFLOAD_CRC_STRIP, #endif }, + .rx_adv_conf = { + .rss_conf = { + .rss_key = NULL, + .rss_hf = ETH_RSS_IP, + }, + }, .txmode = { .mq_mode = ETH_MQ_TX_NONE, }, -- 1.8.3.1