From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5F93A0352; Mon, 18 Nov 2019 19:19:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B728EB62; Mon, 18 Nov 2019 19:19:05 +0100 (CET) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 58457A69 for ; Mon, 18 Nov 2019 19:19:04 +0100 (CET) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAIIBm4Q011710 for ; Mon, 18 Nov 2019 13:19:03 -0500 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wadmvxd89-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 18 Nov 2019 13:19:02 -0500 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xAIIE4gv013471 for ; Mon, 18 Nov 2019 18:19:01 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma05wdc.us.ibm.com with ESMTP id 2wa8r64kh6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 18 Nov 2019 18:19:01 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xAIIJ0dK60096990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Nov 2019 18:19:00 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6A5156A047; Mon, 18 Nov 2019 18:19:00 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3E0EE6A04F; Mon, 18 Nov 2019 18:19:00 +0000 (GMT) Received: from LAPTOP-EKJMKVH8.austin.ibm.com (unknown [9.53.179.175]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 18 Nov 2019 18:19:00 +0000 (GMT) From: Thinh Tran To: dev@dpdk.org Cc: Thinh Tran Date: Mon, 18 Nov 2019 12:18:33 -0600 Message-Id: <20191118181833.541-1-thinhtr@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-18_05:2019-11-15,2019-11-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 mlxlogscore=684 impostorscore=0 mlxscore=0 clxscore=1011 priorityscore=1501 spamscore=0 suspectscore=1 lowpriorityscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911180155 Subject: [dpdk-dev] [PATCH] examples/ip_reassembly: enable scatter mode for Mellanox PMDs 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" Simple change to enable scatter for Mellanox CX4/CX5 PMDs to run this example Signed-off-by: Thinh Tran --- examples/ip_reassembly/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c index d59e6d02f..f881b89d1 100644 --- a/examples/ip_reassembly/main.c +++ b/examples/ip_reassembly/main.c @@ -1109,6 +1109,9 @@ main(int argc, char **argv) port_conf.rx_adv_conf.rss_conf.rss_hf, local_port_conf.rx_adv_conf.rss_conf.rss_hf); } + /* Mellanox PMDs needs scatter mode to be explicitly enabled */ + if (!strcmp(dev_info.driver_name, "net_mlx5")) + local_port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER; ret = rte_eth_dev_configure(portid, 1, (uint16_t)n_tx_queue, &local_port_conf); -- 2.17.1