[dpdk-dev] [PATCH v2 0/2] Example: l2fwd-ethtool
Liang-Min Larry Wang
liang-min.wang at intel.com
Thu Jul 23 17:00:26 CEST 2015
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
More information about the dev
mailing list