netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / CodingStyle.md
index b69b5d6..0a441e0 100644 (file)
@@ -83,7 +83,7 @@ e.g.:
     /* An event that will wake the following call to poll_block(). */
     struct poll_waiter {
         /* Set when the waiter is created. */
-        struct list node;           /* Element in global waiters list. */
+        struct ovs_list node;       /* Element in global waiters list. */
         int fd;                     /* File descriptor. */
         short int events;           /* Events to wait for (POLLIN, POLLOUT). */
         poll_fd_func *function;     /* Callback function, if any, or null. */
@@ -569,3 +569,10 @@ for other compilers.  You can, however, use C99 features or GCC
 extensions also supported by Clang in code that compiles only on
 GNU/Linux (such as lib/netdev-linux.c), because GCC is the system
 compiler there.
+
+## PYTHON
+
+When introducing new Python code, try to follow Python's
+[PEP 8](http://www.python.org/dev/peps/pep-0008/) style.
+Consider running the `pep8` or `flake8` tool against your
+code to find issues.