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 13D73C6FC for ; Fri, 29 Jan 2016 17:18:33 +0100 (CET) Received: from pps.filterd (m0048193.ppops.net [127.0.0.1]) by mx0a-000f0801.pphosted.com (8.15.0.59/8.15.0.59) with SMTP id u0TGBOpW009569 for ; Fri, 29 Jan 2016 08:18:33 -0800 Received: from brmwp-exmb12.corp.brocade.com ([208.47.132.227]) by mx0a-000f0801.pphosted.com with ESMTP id 20qrv02gdb-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Fri, 29 Jan 2016 08:18:33 -0800 Received: from EMEAWP-EXMB11.corp.brocade.com (172.29.11.85) by BRMWP-EXMB12.corp.brocade.com (172.16.59.130) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 29 Jan 2016 09:18:31 -0700 Received: from BRA-GXP4P12.brocade.com (10.252.48.16) by EMEAWP-EXMB11.corp.brocade.com (172.29.11.85) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 29 Jan 2016 17:18:28 +0100 From: Paul Atkins To: Date: Fri, 29 Jan 2016 16:18:10 +0000 Message-ID: <1454084293-5722-1-git-send-email-patkins@brocade.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.252.48.16] X-ClientProxiedBy: hq1wp-excas11.corp.brocade.com (10.70.36.102) To EMEAWP-EXMB11.corp.brocade.com (172.29.11.85) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-01-29_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1601100000 definitions=main-1601290272 Subject: [dpdk-dev] [PATCH 0/3] null driver improvements for testability X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2016 16:18:34 -0000 This patchset adds functionality to the null driver help when testing a dataplane that uses dpdk. The idea is that the the dataplane can have multiple null interfaces attached, and each of theses can be assigned a mac address. Packets can then be injected into the null drivers by adding them to a ring, giving the application complete control of the packets that arrive. Packets that are sent by a null driver can be stored on a ring, where the application can pick them up and verify it is what was expected. To allow the application to know when packets have been pulled of the rx ring, counters of the number of times an rx poll has been made are kept, and these can be retrieved via the existing APIs. All of these enhancements are using the existing APIs, and do not modify the existing behaviour of the null driver if these features are not configured. Paul Atkins (3): null: add a new arg to allow users to specify ether address null: add rings to allow user to provide the mbufs for rx/tx null: add xstats to provide the number of rx polls drivers/net/null/rte_eth_null.c | 214 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 203 insertions(+), 11 deletions(-) -- 1.7.10.4