fix typos using codespell utility
[dpdk.git] / examples / netmap_compat / lib / compat_netmap.c
index bf1b418..d9b4051 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++) {