Message ID | 20190621155659.29297-1-bruce.richardson@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB8F91D52D; Fri, 21 Jun 2019 17:57:10 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CF3611D518 for <dev@dpdk.org>; Fri, 21 Jun 2019 17:57:08 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2019 08:57:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,400,1557212400"; d="scan'208";a="183441130" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.2]) by fmsmga004.fm.intel.com with ESMTP; 21 Jun 2019 08:57:06 -0700 From: Bruce Richardson <bruce.richardson@intel.com> To: dev@dpdk.org Cc: Bruce Richardson <bruce.richardson@intel.com> Date: Fri, 21 Jun 2019 16:56:55 +0100 Message-Id: <20190621155659.29297-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190619170802.7691-1-bruce.richardson@intel.com> References: <20190619170802.7691-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/4] fixes and improvements for rawdev X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series | fixes and improvements for rawdev | |
Message
Bruce Richardson
June 21, 2019, 3:56 p.m. UTC
This set includes some general fixes and improvements for rawdev, the rawdev autotests and the rawdev skeleton example implementation. Specifically: * the unit test were failing for me due to bad memory management * the unit tests were not present in the meson builds due to missing file in file list * the self-test function for a rawdev driver did not take the actual device id as a parameter: - because of this the skeleton driver always assumed device 0 was to be tested, an unsafe assumption V2: extended the set with additional fixes to allow selftests to know what instance the tests are to be run on. Bruce Richardson (4): raw/skeleton: fix failing test case app/test: add missing rawdev autotest to meson build raw/skeleton: remove compile-time constant for device id rawdev: pass the device id as parameter to selftest app/test/meson.build | 3 + drivers/raw/skeleton_rawdev/skeleton_rawdev.c | 8 ++- drivers/raw/skeleton_rawdev/skeleton_rawdev.h | 2 +- .../skeleton_rawdev/skeleton_rawdev_test.c | 66 +++++++++---------- lib/librte_rawdev/rte_rawdev.c | 2 +- lib/librte_rawdev/rte_rawdev_pmd.h | 2 +- 6 files changed, 43 insertions(+), 40 deletions(-)