From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-000f0801.pphosted.com (mx0a-000f0801.pphosted.com [67.231.144.122]) by dpdk.org (Postfix) with ESMTP id A789D2B8C for ; Thu, 9 Mar 2017 03:23:00 +0100 (CET) Received: from pps.filterd (m0048193.ppops.net [127.0.0.1]) by mx0a-000f0801.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v292MVQK006052 for ; Wed, 8 Mar 2017 18:22:59 -0800 Received: from hq1wp-exmb12.corp.brocade.com ([144.49.131.13]) by mx0a-000f0801.pphosted.com with ESMTP id 292uayrkwv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 08 Mar 2017 18:22:59 -0800 Received: from [192.168.0.101] (10.120.21.101) by HQ1WP-EXMB12.corp.brocade.com (10.70.20.186) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 8 Mar 2017 18:22:58 -0800 To: From: Wen Chiu Message-ID: <17a10461-122b-c6ad-ca44-f25b4cdb36c8@brocade.com> Date: Wed, 8 Mar 2017 18:22:42 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.120.21.101] X-ClientProxiedBy: hq1wp-excas12.corp.brocade.com (10.70.38.22) To HQ1WP-EXMB12.corp.brocade.com (10.70.20.186) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-03-08_19:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703090015 Subject: [dpdk-dev] dpdk 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch issue 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: , X-List-Received-Date: Thu, 09 Mar 2017 02:23:01 -0000 Hi, 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch is now officially in dpdk 17.02. But, it caused segmentation fault every time when I configured bonding. In slave_configure(), "Setup Tx Queues" logic change from for q_id=old_nb_tx_queues to qid=0 which always enters the for loop and calls rte_eth_tx_queue_setup. After that, rte_eth_dev_start() is called to start the device. In rte_eth_dev_start(), vmxnet3_dev_start() is called which calls vmxnet3_dev_rxtx_init(). In vmxnet3_dev_rxtx_init(), after for loop for rx_queues; dev->data->tx_queues[0] is override with value like 0x121b20600 which is an invalid memory address that caused the fault. Without this 0005 patch, looks like rte_eth_tx_queue_setup() is never called as q_id=old_nb_tx_queues never < nb_tx_queues. So, I suspect the calls to queue_setup() somehow makes the queues to be setup incorrectly or incompletely which causes the fault. Has anyone else encounters the same issue? Regards, Wen Chiu