From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Atkins Subject: [PATCH 0/3] null driver improvements for testability Date: Fri, 29 Jan 2016 16:18:10 +0000 Message-ID: <1454084293-5722-1-git-send-email-patkins@brocade.com> Mime-Version: 1.0 Content-Type: text/plain To: 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 List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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