From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4F6B5C388 for ; Thu, 23 Jul 2015 17:00:33 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 23 Jul 2015 08:00:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,531,1432623600"; d="scan'208";a="611545939" Received: from lwang14-mobl6.amr.corp.intel.com ([10.127.184.110]) by orsmga003.jf.intel.com with ESMTP; 23 Jul 2015 08:00:31 -0700 From: Liang-Min Larry Wang To: dev@dpdk.org Date: Thu, 23 Jul 2015 11:00:26 -0400 Message-Id: <1437663628-18076-1-git-send-email-liang-min.wang@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437401571-9104-2-git-send-email-liang-min.wang@intel.com> References: <1437401571-9104-2-git-send-email-liang-min.wang@intel.com> Cc: Liang-Min Larry Wang Subject: [dpdk-dev] [PATCH v2 0/2] Example: l2fwd-ethtool 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: Thu, 23 Jul 2015 15:00:33 -0000 This implementation is designed to provide an example illlustrating how to create a user-space ethtool library from existing ethdev APIs. In contrast to kernel version of same API (such as ops defined in KNI), the user-space APIs enable a fast-path (no kernel API calls) for device query and data return. This example implements 19 popular used Ethtool and Netdevice ops as described in examples/l2fwd-ethtool/lib/rte_ethtool.h, and commnity support of un-implemented Ethtool and Netdevice ops are very welcomed. v2 change: - Separate changes on .mk files into a separate patch file - Remove requirement of ABI version for external library build - Fix example/l2fwd-ethtool share object build Andrew G. Harvey (1): Remove ABI requierment for external library builds. 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.extlib.mk | 2 + mk/rte.lib.mk | 6 + 13 files changed, 3516 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