]> git.droids-corp.org - dpdk.git/blobdiff - examples/netmap_compat/lib/compat_netmap.c
fix typos using codespell utility
[dpdk.git] / examples / netmap_compat / lib / compat_netmap.c
index bf1b418afe9a491d5f3684ce6fb5b53077ace02d..d9b40513d4dbc9c17b898a9e901689d6bb3c740b 100644 (file)
@@ -168,7 +168,7 @@ mbuf_to_slot(struct rte_mbuf *mbuf, struct netmap_ring *r, uint32_t index)
 /**
  * Given a Netmap ring and a slot index for that ring, construct a dpdk mbuf
  * from the data held in the buffer associated with the slot.
- * Allocation/deallocation of the dpdk mbuf are the responsability of the
+ * Allocation/deallocation of the dpdk mbuf are the responsibility of the
  * caller.
  * Note that mbuf chains are not supported.
  */
@@ -865,6 +865,9 @@ rte_netmap_poll(struct pollfd *fds, nfds_t nfds, int timeout)
        uint32_t i, idx, port;
        uint32_t want_rx, want_tx;
 
+       if (timeout > 0)
+               return -1;
+
        ret = 0;
        do {
                for (i = 0; i < nfds; i++) {