Date: Fri, 17 Jun 2016 16:26:11 GMT From: vincenzo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r305302 - soc2016/vincenzo/head/sys/dev/netmap Message-ID: <201606171626.u5HGQBf4027201@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vincenzo Date: Fri Jun 17 16:26:11 2016 New Revision: 305302 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305302 Log: freebsd: ptnet_transmit: unlock queue at the end of the function Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c ============================================================================== --- soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Fri Jun 17 16:26:02 2016 (r305301) +++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Fri Jun 17 16:26:11 2016 (r305302) @@ -759,8 +759,6 @@ * by reading from CSB. */ ptnet_sync_tail(ptring, kring); - PTNET_Q_UNLOCK(pq); - head = ring->head; slot = ring->slot + head; nmbuf = NMB(na, slot); @@ -820,6 +818,8 @@ ptring->guest_need_kick = 1; } + PTNET_Q_UNLOCK(pq); + return 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606171626.u5HGQBf4027201>