From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liang-Min Larry Wang Subject: [PATCH] User-space Ethool example Date: Mon, 20 Jul 2015 10:12:50 -0400 Message-ID: <1437401571-9104-1-git-send-email-liang-min.wang@intel.com> Cc: Liang-Min Larry Wang To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CC5702E8F for ; Mon, 20 Jul 2015 16:12:56 +0200 (CEST) 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 implementation is designed to provide an example illlustrating how to create a user-space ethtool library from existing ethdev APIs. This example only implements 19 popular used Ethtool and Netdevice ops as described in examples/l2fwd-ethtool/lib/rte_ethtool.h Liang-Min Larry Wang (1): examples: new example: l2fwd-ethtool examples/Makefile | 1 + examples/l2fwd-ethtool/Makefile | 48 + examples/l2fwd-ethtool/l2fwd-app/Makefile | 58 ++ examples/l2fwd-ethtool/l2fwd-app/main.c | 1025 ++++++++++++++++++++++ examples/l2fwd-ethtool/l2fwd-app/netdev_api.h | 770 ++++++++++++++++ examples/l2fwd-ethtool/l2fwd-app/shared_fifo.h | 159 ++++ examples/l2fwd-ethtool/lib/Makefile | 57 ++ examples/l2fwd-ethtool/lib/rte_ethtool.c | 336 +++++++ examples/l2fwd-ethtool/lib/rte_ethtool.h | 385 ++++++++ examples/l2fwd-ethtool/nic-control/Makefile | 55 ++ examples/l2fwd-ethtool/nic-control/nic_control.c | 614 +++++++++++++ mk/rte.lib.mk | 2 + 12 files changed, 3510 insertions(+) create mode 100644 examples/l2fwd-ethtool/Makefile create mode 100644 examples/l2fwd-ethtool/l2fwd-app/Makefile create mode 100644 examples/l2fwd-ethtool/l2fwd-app/main.c create mode 100644 examples/l2fwd-ethtool/l2fwd-app/netdev_api.h create mode 100644 examples/l2fwd-ethtool/l2fwd-app/shared_fifo.h create mode 100644 examples/l2fwd-ethtool/lib/Makefile create mode 100644 examples/l2fwd-ethtool/lib/rte_ethtool.c create mode 100644 examples/l2fwd-ethtool/lib/rte_ethtool.h create mode 100644 examples/l2fwd-ethtool/nic-control/Makefile create mode 100644 examples/l2fwd-ethtool/nic-control/nic_control.c -- 2.1.4