DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] docs: add warning note to base dirs readme
@ 2015-06-10 17:08 John McNamara
  2015-06-10 17:08 ` [dpdk-dev] [PATCH 1/2] doc: add explanation about code in the base dirs John McNamara
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: John McNamara @ 2015-06-10 17:08 UTC (permalink / raw)
  To: dev

This patch updates the "Source Organisation" section of the Programmers Guide
to add an note that the code in the drivers/net/pmd/base directories should
not be modifed by the user apart from the pmd_osdep.[ch] files.

It also adds a note to the README files in the drivers/net/pmd/base dirs to
highlight the same thing.

P.S. When reviewing documentation patches it is sometimes useful to apply them to a temp
branch and view the differences on a word or character level:

    git diff --color-words   HEAD~1
    git diff --color-words=. HEAD~1

John McNamara (2):
  doc: add explanation about code in the base dirs
  drivers: add warning note to base dirs readme

 doc/guides/prog_guide/source_org.rst | 124 +++++++++++++++++++----------------
 drivers/net/e1000/base/README        |  13 ++--
 drivers/net/ixgbe/base/README        |  16 ++---
 drivers/net/vmxnet3/base/README      |  13 ++--
 4 files changed, 87 insertions(+), 79 deletions(-)

--
1.8.1.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH 1/2] doc: add explanation about code in the base dirs
  2015-06-10 17:08 [dpdk-dev] [PATCH 0/2] docs: add warning note to base dirs readme John McNamara
@ 2015-06-10 17:08 ` John McNamara
  2015-06-10 17:08 ` [dpdk-dev] [PATCH 2/2] drivers: add warning note to base dirs readme John McNamara
  2015-08-10 22:27 ` [dpdk-dev] [PATCH 0/2] docs: " Thomas Monjalon
  2 siblings, 0 replies; 4+ messages in thread
From: John McNamara @ 2015-06-10 17:08 UTC (permalink / raw)
  To: dev

This patch updates the "Source Organisation" section of the
Programmers Guide to add an note that the code in the
drivers/net/pmd/base directories should not be modifed
by the user apart from the pmd_osdep.[ch] files.

Also fixes some grammar and rst issues in that section.

Signed-off-by: John McNamara <john.mcnamara@intel.com>
---
 doc/guides/prog_guide/source_org.rst | 124 +++++++++++++++++++----------------
 1 file changed, 68 insertions(+), 56 deletions(-)

diff --git a/doc/guides/prog_guide/source_org.rst b/doc/guides/prog_guide/source_org.rst
index 4f6f489..67c2a15 100644
--- a/doc/guides/prog_guide/source_org.rst
+++ b/doc/guides/prog_guide/source_org.rst
@@ -41,62 +41,62 @@ Makefiles and Config
 .. note::
 
     In the following descriptions,
-    RTE_SDK is the environment variable that points to the base directory into which the tarball was extracted.
+    ``RTE_SDK`` is the environment variable that points to the base directory into which the tarball was extracted.
     See
-    :ref:`Useful Variables Provided by the Build System <Useful_Variables_Provided_by_the_Build_System>`
+    :ref:`Useful_Variables_Provided_by_the_Build_System`
     for descriptions of other variables.
 
-Makefiles that are provided by the DPDK libraries and applications are located in $(RTE_SDK)/mk.
+Makefiles that are provided by the DPDK libraries and applications are located in ``$(RTE_SDK)/mk``.
 
-Config templates are located in $(RTE_SDK)/config. The templates describe the options that are enabled for each target.
+Config templates are located in ``$(RTE_SDK)/config``. The templates describe the options that are enabled for each target.
 The config file also contains items that can be enabled and disabled for many of the DPDK libraries,
 including debug options.
-The user should look at the config file and become familiar with the options.
+The user should look at the config file and become familiar with these options.
 The config file is also used to create a header file, which will be located in the new build directory.
 
 Libraries
 ---------
 
-Libraries are located in subdirectories of $(RTE_SDK)/lib.
-By convention, we call a library any code that provides an API to an application.
-Typically, it generates an archive file (.a), but a kernel module should also go in the same directory.
+Libraries are located in subdirectories of ``$(RTE_SDK)/lib``.
+By convention a library refers to any code that provides an API to an application.
+Typically, it generates an archive file (``.a``), but a kernel module would also go in the same directory.
 
 The lib directory contains::
 
     lib
-    +-- librte_cmdline      # command line interface helper
-    +-- librte_distributor  # packet distributor
-    +-- librte_eal          # environment abstraction layer
-    +-- librte_ether        # generic interface to poll mode driver
-    +-- librte_hash         # hash library
+    +-- librte_cmdline      # Command line interface helper
+    +-- librte_distributor  # Packet distributor
+    +-- librte_eal          # Environment abstraction layer
+    +-- librte_ether        # Generic interface to poll mode driver
+    +-- librte_hash         # Hash library
     +-- librte_ip_frag      # IP fragmentation library
     +-- librte_ivshmem      # QEMU IVSHMEM library
-    +-- librte_kni          # kernel NIC interface
-    +-- librte_kvargs       # argument parsing library
-    +-- librte_lpm          # longest prefix match library
-    +-- librte_malloc       # malloc-like functions
-    +-- librte_mbuf         # packet and control mbuf manipulation library
-    +-- librte_mempool      # memory pool manager (fixedsized objects)
+    +-- librte_kni          # Kernel NIC interface
+    +-- librte_kvargs       # Argument parsing library
+    +-- librte_lpm          # Longest prefix match library
+    +-- librte_malloc       # Malloc-like functions
+    +-- librte_mbuf         # Packet and control mbuf manipulation
+    +-- librte_mempool      # Memory pool manager (fixed sized objects)
     +-- librte_meter        # QoS metering library
-    +-- librte_net          # various IP-related headers
-    +-- librte_power        # power management library
-    +-- librte_ring         # software rings (act as lockless FIFOs)
+    +-- librte_net          # Various IP-related headers
+    +-- librte_power        # Power management library
+    +-- librte_ring         # Software rings (act as lockless FIFOs)
     +-- librte_sched        # QoS scheduler and dropper library
-    +-- librte_timer        # timer library
+    +-- librte_timer        # Timer library
 
 Drivers
 -------
 
 Drivers are special libraries which provide poll-mode driver implementations for
-devices - either hardware devices or pseudo/virtual devices. They are contained
-in the "drivers" subdirectory, classified by type, and each compiles to a
-library with the format "librte_pmd_X.a" where "X" is the driver name.
+devices: either hardware devices or pseudo/virtual devices. They are contained
+in the *drivers* subdirectory, classified by type, and each compiles to a
+library with the format ``librte_pmd_X.a`` where ``X`` is the driver name.
 
-The drivers directory has a net subdirectory which contains::
+The drivers directory has a *net* subdirectory which contains::
 
     drivers/net
-    +-- af_packet          # poll mode driver based on linux af_packet
-    +-- bonding            # bonding poll mode driver
+    +-- af_packet          # Poll mode driver based on Linux af_packet
+    +-- bonding            # Bonding poll mode driver
     +-- e1000              # 1GbE poll mode drivers (igb and em)
     +-- enic               # Cisco VIC Ethernet NIC Poll-mode Driver
     +-- fm10k              # Host interface PMD driver for FM10000 Series
@@ -105,49 +105,61 @@ The drivers directory has a net subdirectory which contains::
     +-- mlx4               # Mellanox ConnectX-3 poll mode driver
     +-- null               # NULL poll mode driver for testing
     +-- pcap               # PCAP poll mode driver
-    +-- ring               # ring poll mode driver
-    +-- virtio             # virtio poll mode driver
+    +-- ring               # Ring poll mode driver
+    +-- virtio             # Virtio poll mode driver
     +-- vmxnet3            # VMXNET3 poll mode driver
     +-- xenvirt            # Xen virtio poll mode driver
 
+.. note::
+
+   Several of the ``driver/net`` directories contain a ``base``
+   sub-directory. The ``base`` directory generally contains code the shouldn't
+   be modified directly by the user. Any enhancements should be done via the
+   ``X_osdep.c`` and/or ``X_osdep.h`` files in that directory. Refer to the
+   local README in the base directories for driver specific instructions.
+
+
 Applications
 ------------
 
-Applications are sources that contain a main() function.
-They are located in the $(RTE_SDK)/app and $(RTE_SDK)/examples directories.
-
-The app directory contains sample applications that are used to test the DPDK (autotests).
-The examples directory contains sample applications that show how libraries can be used.
+Applications are source files that contain a ``main()`` function.
+They are located in the ``$(RTE_SDK)/app`` and ``$(RTE_SDK)/examples`` directories.
 
-::
+The app directory contains sample applications that are used to test DPDK (such as autotests)
+or the Poll Mode Drivers (test-pmd)::
 
     app
-    +-- chkincs            # test prog to check include depends
-    +-- test               # autotests, to validate DPDK features
-    `-- test-pmd           # test and bench poll mode driver examples
+    +-- chkincs            # Test program to check include dependencies
+    +-- cmdline_test       # Test the commandline library
+    +-- test               # Autotests to validate DPDK features
+    +-- test-acl           # Test the ACL library
+    +-- test-pipeline      # Test the IP Pipeline framework
+    +-- test-pmd           # Test and benchmark poll mode drivers
+
+The examples directory contains sample applications that show how libraries can be used::
 
     examples
-    +-- cmdline            # Example of using cmdline library
-    +-- dpdk_qat           # Example showing integration with Intel QuickAssist
-    +-- exception_path     # Sending packets to and from Linux Ethernet device (TAP)
-    +-- helloworld         # Helloworld basic example
-    +-- ip_reassembly      # Example showing IP Reassembly
-    +-- ip_fragmentation   # Example showing IPv4 Fragmentation
-    +-- ipv4_multicast     # Example showing IPv4 Multicast
-    +-- kni                # Kernel NIC Interface example
-    +-- l2fwd              # L2 Forwarding example with and without SR-IOV
-    +-- l3fwd              # L3 Forwarding example
-    +-- l3fwd-power        # L3 Forwarding example with power management
-    +-- l3fwd-vf           # L3 Forwarding example with SR-IOV
+    +-- cmdline            # Example of using the cmdline library
+    +-- dpdk_qat           # Sample integration with Intel QuickAssist
+    +-- exception_path     # Sending packets to and from Linux TAP device
+    +-- helloworld         # Basic Hello World example
+    +-- ip_reassembly      # Example showing IP reassembly
+    +-- ip_fragmentation   # Example showing IPv4 fragmentation
+    +-- ipv4_multicast     # Example showing IPv4 multicast
+    +-- kni                # Kernel NIC Interface (KNI) example
+    +-- l2fwd              # L2 forwarding with and without SR-IOV
+    +-- l3fwd              # L3 forwarding example
+    +-- l3fwd-power        # L3 forwarding example with power management
+    +-- l3fwd-vf           # L3 forwarding example with SR-IOV
     +-- link_status_interrupt # Link status change interrupt example
     +-- load_balancer      # Load balancing across multiple cores/sockets
-    +-- multi_process      # Example applications with multiple DPDK processes
+    +-- multi_process      # Example apps using multiple DPDK processes
     +-- qos_meter          # QoS metering example
     +-- qos_sched          # QoS scheduler and dropper example
     +-- timer              # Example of using librte_timer library
-    +-- vmdq_dcb           # Intel 82599 Ethernet Controller VMDQ and DCB receiving
-    +-- vmdq               # Example of VMDQ receiving for both Intel 10G (82599) and 1G (82576, 82580 and I350) Ethernet Controllers
-    `-- vhost              # Example of userspace vhost and switch
+    +-- vmdq_dcb           # Example of VMDQ and DCB receiving
+    +-- vmdq               # Example of VMDQ receiving
+    +-- vhost              # Example of userspace vhost and switch
 
 .. note::
 
-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH 2/2] drivers: add warning note to base dirs readme
  2015-06-10 17:08 [dpdk-dev] [PATCH 0/2] docs: add warning note to base dirs readme John McNamara
  2015-06-10 17:08 ` [dpdk-dev] [PATCH 1/2] doc: add explanation about code in the base dirs John McNamara
@ 2015-06-10 17:08 ` John McNamara
  2015-08-10 22:27 ` [dpdk-dev] [PATCH 0/2] docs: " Thomas Monjalon
  2 siblings, 0 replies; 4+ messages in thread
From: John McNamara @ 2015-06-10 17:08 UTC (permalink / raw)
  To: dev

This patch adds a note to the README files in the
drivers/net/pmd/base dirs to highlight that the code should not
be modifed by the user apart from the pmd_osdep.[ch] files.

Signed-off-by: John McNamara <john.mcnamara@intel.com>
---
 drivers/net/e1000/base/README   | 13 +++++++++----
 drivers/net/ixgbe/base/README   | 16 +++++-----------
 drivers/net/vmxnet3/base/README | 13 +++++--------
 3 files changed, 19 insertions(+), 23 deletions(-)

diff --git a/drivers/net/e1000/base/README b/drivers/net/e1000/base/README
index 851e54e..59275b6 100644
--- a/drivers/net/e1000/base/README
+++ b/drivers/net/e1000/base/README
@@ -33,7 +33,12 @@
 This directory contains source code of FreeBSD em & igb drivers of version
 cid-shared-code.2014.04.21 released by LAD. The sub-directory of lad/
 contains the original source package.
-Few changes to the original FreeBSD sources were made to:
-- Adopt it for PMD usage mode:
-	e1000_osdep.c
-	e1000_osdep.h
+
+Updating the driver
+===================
+
+NOTE: The source code in this directory should not be modified apart from
+the following file(s):
+
+    e1000_osdep.c
+    e1000_osdep.h
diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README
index ba1249b..b629dc8 100644
--- a/drivers/net/ixgbe/base/README
+++ b/drivers/net/ixgbe/base/README
@@ -52,16 +52,10 @@ This driver is valid for the product(s) listed below
 * Intel® Ethernet Server Adapter X520-T2
 * Intel® Ethernet Controller X550-BT2
 
-Updating driver
-===============
-
-The following modifications have been made to this code to integrate it with the
-Intel® DPDK:
-
+Updating the driver
+===================
 
-ixgbe_osdep.h
--------------
+NOTE: The source code in this directory should not be modified apart from
+the following file(s):
 
-The OS dependency layer has been extensively modified to support the drivers in
-the Intel® DPDK environment. It is expected that these files will not need to be
-changed on updating the driver.
+    ixgbe_osdep.h
diff --git a/drivers/net/vmxnet3/base/README b/drivers/net/vmxnet3/base/README
index f13fec7..599a366 100644
--- a/drivers/net/vmxnet3/base/README
+++ b/drivers/net/vmxnet3/base/README
@@ -38,13 +38,10 @@ In which, upt1_defs.h and vmxnet3_defs.h is introduced without any change.
 The other 4 files: includeCheck.h, vmware_pack_begin.h, vmware_pack_end.h and vmxnet3_osdep.h
 are crated to adapt to the needs from above 2 files.
 
-Updating driver
-===============
-
-The following modifications have been made to this code to integrate it with the
-Intel DPDK:
-
-
--------------
+Updating the driver
+===================
 
+NOTE: The source code in this directory should not be modified apart from
+the following file(s):
 
+    vmxnet3_osdep.h
-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH 0/2] docs: add warning note to base dirs readme
  2015-06-10 17:08 [dpdk-dev] [PATCH 0/2] docs: add warning note to base dirs readme John McNamara
  2015-06-10 17:08 ` [dpdk-dev] [PATCH 1/2] doc: add explanation about code in the base dirs John McNamara
  2015-06-10 17:08 ` [dpdk-dev] [PATCH 2/2] drivers: add warning note to base dirs readme John McNamara
@ 2015-08-10 22:27 ` Thomas Monjalon
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-08-10 22:27 UTC (permalink / raw)
  To: John McNamara; +Cc: dev

> This patch updates the "Source Organisation" section of the Programmers Guide
> to add an note that the code in the drivers/net/pmd/base directories should
> not be modifed by the user apart from the pmd_osdep.[ch] files.
> 
> It also adds a note to the README files in the drivers/net/pmd/base dirs to
> highlight the same thing.
> 
> John McNamara (2):
>   doc: add explanation about code in the base dirs
>   drivers: add warning note to base dirs readme

Applied, thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-10 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10 17:08 [dpdk-dev] [PATCH 0/2] docs: add warning note to base dirs readme John McNamara
2015-06-10 17:08 ` [dpdk-dev] [PATCH 1/2] doc: add explanation about code in the base dirs John McNamara
2015-06-10 17:08 ` [dpdk-dev] [PATCH 2/2] drivers: add warning note to base dirs readme John McNamara
2015-08-10 22:27 ` [dpdk-dev] [PATCH 0/2] docs: " Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).