Author: luigi
Date: Sat Feb 14 19:18:56 2015
New Revision: 278775
URL: https://svnweb.freebsd.org/changeset/base/278775

Log:
  sync with the version in head (r274338):
  fix one comment, and return kernel-supplied error if available.
  no API changes.

Modified:
  stable/10/sys/net/netmap_user.h

Modified: stable/10/sys/net/netmap_user.h
==============================================================================
--- stable/10/sys/net/netmap_user.h     Sat Feb 14 19:03:11 2015        
(r278774)
+++ stable/10/sys/net/netmap_user.h     Sat Feb 14 19:18:56 2015        
(r278775)
@@ -40,7 +40,7 @@
  * From there:
  *     struct netmap_ring *NETMAP_TXRING(nifp, index)
  *     struct netmap_ring *NETMAP_RXRING(nifp, index)
- *             we can access ring->nr_cur, ring->nr_avail, ring->nr_flags
+ *             we can access ring->cur, ring->head, ring->tail, etc.
  *
  *     ring->slot[i] gives us the i-th slot (we can access
  *             directly len, flags, buf_idx)
@@ -543,7 +543,8 @@ fail:
        nm_close(d);
        if (errmsg)
                D("%s %s", errmsg, ifname);
-       errno = EINVAL;
+       if (errno == 0)
+               errno = EINVAL;
        return NULL;
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to