svn commit: r278775 - stable/10/sys/net
Luigi Rizzo
luigi at FreeBSD.org
Sat Feb 14 19:18:57 UTC 2015
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;
}
More information about the svn-src-stable-10
mailing list