svn commit: r368037 - stable/12/tools/tools/netmap

2020-11-25 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 25 21:25:17 2020 New Revision: 368037 URL: https://svnweb.freebsd.org/changeset/base/368037 Log: MFC r367936 netmap: bridge: improve readability Multiple cosmetic changes, plus a fix to a verbose print (indicating wrong net->host/host->net direction).

svn commit: r368036 - stable/12/usr.sbin/valectl

2020-11-25 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 25 21:24:39 2020 New Revision: 368036 URL: https://svnweb.freebsd.org/changeset/base/368036 Log: MFC r367935 netmap: valectl: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in

svn commit: r368035 - stable/12/tools/tools/netmap

2020-11-25 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 25 21:23:58 2020 New Revision: 368035 URL: https://svnweb.freebsd.org/changeset/base/368035 Log: MFC r367934 netmap: nmreplay: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in

svn commit: r368034 - stable/12/tools/tools/netmap

2020-11-25 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 25 21:23:13 2020 New Revision: 368034 URL: https://svnweb.freebsd.org/changeset/base/368034 Log: MFC r367933 netmap: lb: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h

svn commit: r368033 - stable/12/tools/tools/netmap

2020-11-25 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 25 21:22:16 2020 New Revision: 368033 URL: https://svnweb.freebsd.org/changeset/base/368033 Log: MFC r367932 netmap: pkt-gen: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in

svn commit: r368032 - stable/12/tools/tools/netmap

2020-11-25 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 25 21:20:55 2020 New Revision: 368032 URL: https://svnweb.freebsd.org/changeset/base/368032 Log: MFC r367931 netmap: bridge: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in

svn commit: r367996 - stable/12/tools/tools/netmap

2020-11-24 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Nov 24 19:55:01 2020 New Revision: 367996 URL: https://svnweb.freebsd.org/changeset/base/367996 Log: MFC r367920, r367921 netmap: bridge: update man page with more information Update the man page to describe how it is necessary to enable promiscuous mode

svn commit: r367936 - head/tools/tools/netmap

2020-11-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Nov 22 13:39:21 2020 New Revision: 367936 URL: https://svnweb.freebsd.org/changeset/base/367936 Log: netmap: bridge: improve readability Multiple cosmetic changes, plus a fix to a verbose print (indicating wrong net->host/host->net direction). MFC after:

svn commit: r367935 - head/usr.sbin/valectl

2020-11-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Nov 22 10:02:56 2020 New Revision: 367935 URL: https://svnweb.freebsd.org/changeset/base/367935 Log: netmap: valectl: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC

svn commit: r367934 - head/tools/tools/netmap

2020-11-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Nov 22 09:38:01 2020 New Revision: 367934 URL: https://svnweb.freebsd.org/changeset/base/367934 Log: netmap: nmreplay: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC

svn commit: r367933 - head/tools/tools/netmap

2020-11-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Nov 22 09:28:50 2020 New Revision: 367933 URL: https://svnweb.freebsd.org/changeset/base/367933 Log: netmap: lb: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC after:

svn commit: r367932 - head/tools/tools/netmap

2020-11-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Nov 22 09:20:08 2020 New Revision: 367932 URL: https://svnweb.freebsd.org/changeset/base/367932 Log: netmap: pkt-gen: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h Modified:

svn commit: r367931 - head/tools/tools/netmap

2020-11-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Nov 22 09:10:12 2020 New Revision: 367931 URL: https://svnweb.freebsd.org/changeset/base/367931 Log: netmap: bridge: switch to libnetmap Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h Modified:

svn commit: r367921 - head/tools/tools/netmap

2020-11-21 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Nov 21 18:47:13 2020 New Revision: 367921 URL: https://svnweb.freebsd.org/changeset/base/367921 Log: netmap: bridge, pkt-gen: fix man page typo Reported by: ian MFC after:3 days Modified: head/tools/tools/netmap/bridge.8

Re: svn commit: r367920 - head/tools/tools/netmap

2020-11-21 Thread Vincenzo Maffione
ups... Thanks! Cheers, Vincenzo Il giorno sab 21 nov 2020 alle ore 19:27 Ian Lepore ha scritto: > On Sat, 2020-11-21 at 18:20 +0000, Vincenzo Maffione wrote: > > Author: vmaffione > > Date: Sat Nov 21 18:20:21 2020 > > New Revision: 367920 > ... > > +.Bd -li

svn commit: r367920 - head/tools/tools/netmap

2020-11-21 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Nov 21 18:20:21 2020 New Revision: 367920 URL: https://svnweb.freebsd.org/changeset/base/367920 Log: netmap: bridge: update man page with more information Update the man page to describe how it is necessary to enable promiscuous mode and/or disable offloads.

svn commit: r367599 - stable/12/sys/net

2020-11-11 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 11 21:27:16 2020 New Revision: 367599 URL: https://svnweb.freebsd.org/changeset/base/367599 Log: MFC r367093, r367117 iflib: add per-tx-queue netmap timer The way netmap TX is handled in iflib when TX interrupts are not used (IFC_NETMAP_TX_IRQ not

svn commit: r367117 - head/sys/net

2020-10-28 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Oct 28 21:06:17 2020 New Revision: 367117 URL: https://svnweb.freebsd.org/changeset/base/367117 Log: iflib: fix typo bug introduced by r367093 Code was supposed to call callout_reset_sbt_on() rather than callout_reset_sbt(). This resulted into passing a "cpu"

svn commit: r367093 - head/sys/net

2020-10-27 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 27 21:53:33 2020 New Revision: 367093 URL: https://svnweb.freebsd.org/changeset/base/367093 Log: iflib: add per-tx-queue netmap timer The way netmap TX is handled in iflib when TX interrupts are not used (IFC_NETMAP_TX_IRQ not set) has some issues: -

svn commit: r367036 - stable/12/sys/dev/netmap

2020-10-25 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Oct 25 07:48:07 2020 New Revision: 367036 URL: https://svnweb.freebsd.org/changeset/base/367036 Log: MFC r366952 netmap: fix mutex double unlock bug https://github.com/luigirizzo/netmap/pull/733 Submitted by:brian90013 Modified:

svn commit: r366952 - head/sys/dev/netmap

2020-10-22 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Oct 22 20:21:11 2020 New Revision: 366952 URL: https://svnweb.freebsd.org/changeset/base/366952 Log: netmap: fix mutex double unlock bug https://github.com/luigirizzo/netmap/pull/733 Submitted by: brian90013 MFC after:3 days Modified:

svn commit: r366499 - stable/12/tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:15:11 2020 New Revision: 366499 URL: https://svnweb.freebsd.org/changeset/base/366499 Log: MFC r366394 netmap: tools: extend CFLAGS after including bsd.prog.mk MFC after: 1 week Modified: stable/12/tools/tools/netmap/Makefile Directory

svn commit: r366498 - stable/12/tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:14:03 2020 New Revision: 366498 URL: https://svnweb.freebsd.org/changeset/base/366498 Log: MFC r366393 netmap: tools: fix several compiler warnings MFC after: 1 week Modified: stable/12/tools/tools/netmap/Makefile

svn commit: r366497 - in stable/12: share/man/man4 tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:12:43 2020 New Revision: 366497 URL: https://svnweb.freebsd.org/changeset/base/366497 Log: MFC r366389 netmap: minor documentation fix Also update date of pkt-gen.8 (not done in r366387). Submitted by: milosz.kaniew...@gmail.com Modified:

svn commit: r366496 - stable/12/sys/net

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:11:55 2020 New Revision: 366496 URL: https://svnweb.freebsd.org/changeset/base/366496 Log: MFC r366388 netmap: fix constness warnings generated by "-Wcast-qual" Submitted by: milosz.kaniew...@gmail.com Modified:

svn commit: r366495 - stable/12/tools/tools/netmap

2020-10-06 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Oct 6 19:10:32 2020 New Revision: 366495 URL: https://svnweb.freebsd.org/changeset/base/366495 Log: MFC r366387 netmap: pkt-gen: minor corrections to documentation Submitted by: Brian Poole Modified: stable/12/tools/tools/netmap/pkt-gen.8

svn commit: r366394 - head/tools/tools/netmap

2020-10-03 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Oct 3 13:27:12 2020 New Revision: 366394 URL: https://svnweb.freebsd.org/changeset/base/366394 Log: netmap: tools: extend CFLAGS after including bsd.prog.mk MFC after:1 week Modified: head/tools/tools/netmap/Makefile Modified:

svn commit: r366393 - head/tools/tools/netmap

2020-10-03 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Oct 3 13:19:48 2020 New Revision: 366393 URL: https://svnweb.freebsd.org/changeset/base/366393 Log: netmap: tools: fix several compiler warnings MFC after:1 week Modified: head/tools/tools/netmap/Makefile head/tools/tools/netmap/bridge.c

svn commit: r366389 - in head: share/man/man4 tools/tools/netmap

2020-10-03 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Oct 3 09:36:33 2020 New Revision: 366389 URL: https://svnweb.freebsd.org/changeset/base/366389 Log: netmap: minor documentation fix Also update date of pkt-gen.8 (not done in r366387). Submitted by: milosz.kaniew...@gmail.com MFC after:3 days

svn commit: r366388 - head/sys/net

2020-10-03 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Oct 3 09:33:29 2020 New Revision: 366388 URL: https://svnweb.freebsd.org/changeset/base/366388 Log: netmap: fix constness warnings generated by "-Wcast-qual" Submitted by: milosz.kaniew...@gmail.com MFC after:3 days Modified: head/sys/net/netmap_user.h

svn commit: r366387 - head/tools/tools/netmap

2020-10-03 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Oct 3 09:23:34 2020 New Revision: 366387 URL: https://svnweb.freebsd.org/changeset/base/366387 Log: netmap: pkt-gen: minor corrections to documentation Submitted by: Brian Poole MFC after:3 days Modified: head/tools/tools/netmap/pkt-gen.8

svn commit: r366130 - stable/12/lib/libnetmap

2020-09-24 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Sep 24 20:01:31 2020 New Revision: 366130 URL: https://svnweb.freebsd.org/changeset/base/366130 Log: MFC r366011 libnetmap: fix cast from uint64_t to void* We use uintptr_t as an intermediate cast to avoid compiler warnings on 32 bit architectures.

svn commit: r366014 - in stable/12/sys: dev/bnxt dev/vmware/vmxnet3 net

2020-09-22 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 22 21:43:43 2020 New Revision: 366014 URL: https://svnweb.freebsd.org/changeset/base/366014 Log: MFC r365061 iflib: leave only 1 receive descriptor unused The pidx argument of isc_rxd_flush() indicates which is the last valid receive descriptor to be

svn commit: r366013 - in stable/12: lib lib/libnetmap share/mk

2020-09-22 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 22 21:16:03 2020 New Revision: 366013 URL: https://svnweb.freebsd.org/changeset/base/366013 Log: MFC r364936, r365023 lib: add libnetmap This changeset introduces the new libnetmap library for writing netmap applications. Before libnetmap,

svn commit: r366011 - head/lib/libnetmap

2020-09-22 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 22 20:20:43 2020 New Revision: 366011 URL: https://svnweb.freebsd.org/changeset/base/366011 Log: libnetmap: fix cast from uint64_t to void* We use uintptr_t as an intermediate cast to avoid compiler warnings on 32 bit architectures. Reported by:

svn commit: r365066 - stable/12/sys/net

2020-09-01 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 1 20:58:23 2020 New Revision: 365066 URL: https://svnweb.freebsd.org/changeset/base/365066 Log: r364770 iflib: netmap: publish all the receive buffer At initialization time, the netmap RX refill function used to prepare the NIC RX ring with N-1

svn commit: r365065 - stable/12/sys/net

2020-09-01 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 1 20:50:16 2020 New Revision: 365065 URL: https://svnweb.freebsd.org/changeset/base/365065 Log: MFC r364655 iflib: fix isc_rxd_flush call in netmap_fl_refill() The semantic of the pidx argument of isc_rxd_flush() is the last valid index of in the

svn commit: r365064 - stable/12/sys/net

2020-09-01 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 1 20:47:59 2020 New Revision: 365064 URL: https://svnweb.freebsd.org/changeset/base/365064 Log: MFC r364165 iflib: netmap: improve rxsync to support IFLIB_HAS_RXCQ For drivers with IFLIB_HAS_RXCQ set, there is a separate completion queue. In this

svn commit: r365063 - stable/12/sys/net

2020-09-01 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 1 20:45:33 2020 New Revision: 365063 URL: https://svnweb.freebsd.org/changeset/base/365063 Log: MFC r364164 iflib: refactor netmap_fl_refill and fix off-by-one issue First, fix the initialization of the fl->ifl_rxd_idxs array, which was affected by

svn commit: r365061 - in head/sys: dev/bnxt dev/mgb dev/vmware/vmxnet3 net

2020-09-01 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 1 20:41:47 2020 New Revision: 365061 URL: https://svnweb.freebsd.org/changeset/base/365061 Log: iflib: leave only 1 receive descriptor unused The pidx argument of isc_rxd_flush() indicates which is the last valid receive descriptor to be used by the NIC.

svn commit: r365023 - head/lib/libnetmap

2020-09-01 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 1 06:06:32 2020 New Revision: 365023 URL: https://svnweb.freebsd.org/changeset/base/365023 Log: lib: libnetmap: add missing copyright headers MFC after:2 weeks Modified: head/lib/libnetmap/nmctx-pthreads.c head/lib/libnetmap/nmctx.c

svn commit: r364936 - in head: lib lib/libnetmap share/mk

2020-08-28 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Aug 28 20:03:54 2020 New Revision: 364936 URL: https://svnweb.freebsd.org/changeset/base/364936 Log: lib: add libnetmap This changeset introduces the new libnetmap library for writing netmap applications. Before libnetmap, applications could either use the

svn commit: r364878 - stable/12/sys/dev/e1000

2020-08-27 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Aug 27 19:12:39 2020 New Revision: 364878 URL: https://svnweb.freebsd.org/changeset/base/364878 Log: MFC r363995 em(4): honor vlanhwtag offload The FreeBSD em driver fails to properly reset the VME flag in the e1000 CTRL register oneg the following

svn commit: r364879 - stable/11/sys/dev/e1000

2020-08-27 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Aug 27 19:15:09 2020 New Revision: 364879 URL: https://svnweb.freebsd.org/changeset/base/364879 Log: MFC r363995 em(4): honor vlanhwtag offload The FreeBSD em driver fails to properly reset the VME flag in the e1000 CTRL register oneg the following

svn commit: r364770 - head/sys/net

2020-08-25 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Aug 25 15:19:45 2020 New Revision: 364770 URL: https://svnweb.freebsd.org/changeset/base/364770 Log: iflib: netmap: publish all the receive buffer At initialization time, the netmap RX refill function used to prepare the NIC RX ring with N-1 buffers rather

svn commit: r364756 - stable/11/sys/dev/netmap

2020-08-25 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Aug 25 11:12:30 2020 New Revision: 364756 URL: https://svnweb.freebsd.org/changeset/base/364756 Log: MFC r364341 netmap: fix parsing of legacy nmr->nr_ringid Code was checking for NETMAP_{SW,HW}_RING in req->nr_ringid which had already been masked by

svn commit: r364755 - stable/12/sys/dev/netmap

2020-08-25 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Aug 25 11:10:37 2020 New Revision: 364755 URL: https://svnweb.freebsd.org/changeset/base/364755 Log: MFC r364341 netmap: fix parsing of legacy nmr->nr_ringid Code was checking for NETMAP_{SW,HW}_RING in req->nr_ringid which had already been masked by

svn commit: r364731 - head/sys/dev/netmap

2020-08-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Aug 24 20:28:21 2020 New Revision: 364731 URL: https://svnweb.freebsd.org/changeset/base/364731 Log: netmap: use FreeBSD guards for epoch calls EPOCH calls are FreeBSD specific. Use guards to protect these, so that the code can compile under Linux. MFC

svn commit: r364655 - head/sys/net

2020-08-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Aug 24 11:44:20 2020 New Revision: 364655 URL: https://svnweb.freebsd.org/changeset/base/364655 Log: iflib: fix isc_rxd_flush call in netmap_fl_refill() The semantic of the pidx argument of isc_rxd_flush() is the last valid index of in the free list, rather

svn commit: r364452 - stable/12/sys/net

2020-08-21 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Aug 21 07:54:16 2020 New Revision: 364452 URL: https://svnweb.freebsd.org/changeset/base/364452 Log: MFC r363997 iflib: netmap: drop redundant check The validity of head is already checked by nm_rxsync_prologue(). Modified: stable/12/sys/net/iflib.c

svn commit: r364451 - stable/12/sys/net

2020-08-21 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Aug 21 07:52:56 2020 New Revision: 364451 URL: https://svnweb.freebsd.org/changeset/base/364451 Log: MFC r363996 iflib: netmap: don't increment ifl_cidx on the wrong free list Netmap only uses free list 0 to keep it consistent with its one-to-one mapping

svn commit: r364341 - head/sys/dev/netmap

2020-08-18 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Aug 18 08:03:28 2020 New Revision: 364341 URL: https://svnweb.freebsd.org/changeset/base/364341 Log: netmap: fix parsing of legacy nmr->nr_ringid Code was checking for NETMAP_{SW,HW}_RING in req->nr_ringid which had already been masked by NETMAP_RING_MASK.

svn commit: r364165 - head/sys/net

2020-08-12 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Aug 12 14:45:31 2020 New Revision: 364165 URL: https://svnweb.freebsd.org/changeset/base/364165 Log: iflib: netmap: improve rxsync to support IFLIB_HAS_RXCQ For drivers with IFLIB_HAS_RXCQ set, there is a separate completion queue. In this case, the netmap

svn commit: r364164 - head/sys/net

2020-08-12 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Aug 12 14:17:38 2020 New Revision: 364164 URL: https://svnweb.freebsd.org/changeset/base/364164 Log: iflib: refactor netmap_fl_refill and fix off-by-one issue First, fix the initialization of the fl->ifl_rxd_idxs array, which was affected by an off-by-one bug.

svn commit: r364085 - stable/12/sys/net

2020-08-10 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Aug 10 17:53:09 2020 New Revision: 364085 URL: https://svnweb.freebsd.org/changeset/base/364085 Log: MFC r363378 iflib: initialize netmap with the correct number of descriptors In case the network device has a RX or TX control queue, the correct number of

svn commit: r363997 - head/sys/net

2020-08-06 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Aug 6 21:37:38 2020 New Revision: 363997 URL: https://svnweb.freebsd.org/changeset/base/363997 Log: iflib: netmap: drop redundant check The validity of head is already checked by nm_rxsync_prologue(). MFC after:2 weeks Modified: head/sys/net/iflib.c

svn commit: r363996 - head/sys/net

2020-08-06 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Aug 6 21:32:25 2020 New Revision: 363996 URL: https://svnweb.freebsd.org/changeset/base/363996 Log: iflib: netmap: don't increment ifl_cidx on the wrong free list Netmap only uses free list 0 to keep it consistent with its one-to-one mapping between each

svn commit: r363995 - head/sys/dev/e1000

2020-08-06 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Aug 6 21:01:26 2020 New Revision: 363995 URL: https://svnweb.freebsd.org/changeset/base/363995 Log: em(4): honor vlanhwtag offload The FreeBSD em driver fails to properly reset the VME flag in the e1000 CTRL register oneg the following ifconfig command

svn commit: r363378 - head/sys/net

2020-07-20 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 20 21:08:56 2020 New Revision: 363378 URL: https://svnweb.freebsd.org/changeset/base/363378 Log: iflib: initialize netmap with the correct number of descriptors In case the network device has a RX or TX control queue, the correct number of TX/RX

svn commit: r363083 - stable/12/sys/net

2020-07-10 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Jul 10 18:30:53 2020 New Revision: 363083 URL: https://svnweb.freebsd.org/changeset/base/363083 Log: MFC r362622 iflib: netmap: add support for partial ring openings Reviewed by:gallatin Differential Revision: https://reviews.freebsd.org/D25254

svn commit: r363082 - stable/12/sys/net

2020-07-10 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Jul 10 18:19:04 2020 New Revision: 363082 URL: https://svnweb.freebsd.org/changeset/base/363082 Log: MFC r362633, r362633 iflib: netmap: add per-tx-queue netmap support Reviewed by:gallatin Differential Revision: https://reviews.freebsd.org/D25253

svn commit: r362856 - stable/12/sys/dev/virtio/network

2020-07-01 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jul 1 19:42:23 2020 New Revision: 362856 URL: https://svnweb.freebsd.org/changeset/base/362856 Log: MFC r362204 if_vtnet: let vtnet_rx_vq_intr() and vtnet_rxq_tq_intr() share code Since the two functions are similar, introduce a common function

svn commit: r362810 - stable/12/sys/net

2020-06-30 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 30 19:34:36 2020 New Revision: 362810 URL: https://svnweb.freebsd.org/changeset/base/362810 Log: MFC r362553 iflib: netmap: fix rsync index overrun In the current iflib_netmap_rxsync, there is nothing that prevents kring->nr_hwtail to overrun

svn commit: r362633 - head/sys/net

2020-06-25 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jun 25 20:43:21 2020 New Revision: 362633 URL: https://svnweb.freebsd.org/changeset/base/362633 Log: iflib: fix compilation issue introduced in r362621 The ifp local variable is useful even without netmap and altq, as it is used to check for IFF_DRV_RUNNING.

svn commit: r362622 - head/sys/net

2020-06-25 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jun 25 19:44:24 2020 New Revision: 362622 URL: https://svnweb.freebsd.org/changeset/base/362622 Log: iflib: netmap: add support for partial ring openings Reviewed by: gallatin MFC after:2 weeks Differential Revision:

svn commit: r362621 - head/sys/net

2020-06-25 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jun 25 19:35:43 2020 New Revision: 362621 URL: https://svnweb.freebsd.org/changeset/base/362621 Log: iflib: netmap: add per-tx-queue netmap support Reviewed by: gallatin MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D25253

svn commit: r362556 - stable/12/sys/net

2020-06-23 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 23 20:48:43 2020 New Revision: 362556 URL: https://svnweb.freebsd.org/changeset/base/362556 Log: MFC r361982 iflib: netmap: honor netmap_irx_irq return values In the receive interrupt routine, always call netmap_rx_irq(). The latter function will

svn commit: r362555 - stable/12/sys/net

2020-06-23 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 23 20:44:05 2020 New Revision: 362555 URL: https://svnweb.freebsd.org/changeset/base/362555 Log: MFC r362185 iflib: netmap: enter/exit netmap mode after device stops Avoid possible race conditions by calling nm_set_native_flags() and

svn commit: r362554 - in stable/12/sys/dev: netmap virtio/network

2020-06-23 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 23 20:41:10 2020 New Revision: 362554 URL: https://svnweb.freebsd.org/changeset/base/362554 Log: MFC r362183 netmap: vtnet: fix races in vtnet_netmap_reg() The nm_register callback needs to call nm_set_native_flags() or nm_clear_native_flags() once

svn commit: r362553 - head/sys/net

2020-06-23 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 23 20:23:56 2020 New Revision: 362553 URL: https://svnweb.freebsd.org/changeset/base/362553 Log: iflib: netmap: fix rsync index overrun In the current iflib_netmap_rxsync, there is nothing that prevents kring->nr_hwtail to overrun kring->nr_hwcur during

svn commit: r362304 - in stable/12/sys/dev: netmap virtio/network

2020-06-18 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jun 18 10:03:17 2020 New Revision: 362304 URL: https://svnweb.freebsd.org/changeset/base/362304 Log: MFC r362076 netmap: introduce netmap_kring_on() This function returns NULL if the ring identified by queue id and direction is in netmap mode. Otherwise

svn commit: r362204 - head/sys/dev/virtio/network

2020-06-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jun 15 19:46:34 2020 New Revision: 362204 URL: https://svnweb.freebsd.org/changeset/base/362204 Log: if_vtnet: let vtnet_rx_vq_intr() and vtnet_rxq_tq_intr() share code Since the two functions are similar, introduce a common function (vtnet_rx_vq_process()) to

Re: svn commit: r361944 - in head/sys/dev/virtio: . network

2020-06-15 Thread Vincenzo Maffione
Il giorno lun 15 giu 2020 alle ore 00:05 Jessica Clarke ha scritto: > On 14 Jun 2020, at 22:22, Tom Jones wrote: > > On Sun, Jun 14, 2020 at 09:56:03PM +0100, Jessica Clarke wrote: > >> On 14 Jun 2020, at 20:51, Tom Jones wrote: > >>> On Mon, Jun 08, 2020 at 09:51:36PM +, Jessica Clarke

Re: svn commit: r361944 - in head/sys/dev/virtio: . network

2020-06-14 Thread Vincenzo Maffione
You may already know that, but FreeBSD-CURRENT supports mergeable rx buffers as of r358180. Cheers, Vincenzo Il giorno dom 14 giu 2020 alle ore 22:56 Jessica Clarke ha scritto: > On 14 Jun 2020, at 20:51, Tom Jones wrote: > > On Mon, Jun 08, 2020 at 09:51:36PM +, Jessica Clarke wrote: >

svn commit: r362185 - head/sys/net

2020-06-14 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jun 14 21:07:12 2020 New Revision: 362185 URL: https://svnweb.freebsd.org/changeset/base/362185 Log: iflib: netmap: enter/exit netmap mode after device stops Avoid possible race conditions by calling nm_set_native_flags() and nm_clear_native_flags() only after

svn commit: r362183 - in head/sys/dev: netmap virtio/network

2020-06-14 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jun 14 20:47:31 2020 New Revision: 362183 URL: https://svnweb.freebsd.org/changeset/base/362183 Log: netmap: vtnet: fix races in vtnet_netmap_reg() The nm_register callback needs to call nm_set_native_flags() or nm_clear_native_flags() once the device has been

svn commit: r362076 - in head/sys/dev: netmap virtio/network

2020-06-11 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jun 11 20:35:28 2020 New Revision: 362076 URL: https://svnweb.freebsd.org/changeset/base/362076 Log: netmap: introduce netmap_kring_on() This function returns NULL if the ring identified by queue id and direction is in netmap mode. Otherwise return the

svn commit: r362026 - stable/12/sys/dev/netmap

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 20:05:53 2020 New Revision: 362026 URL: https://svnweb.freebsd.org/changeset/base/362026 Log: MFC r361760 netmap: vtnet: clean up rxsync disabled logs Modified: stable/12/sys/dev/netmap/if_vtnet_netmap.h Directory Properties: stable/12/ (props

svn commit: r362025 - stable/12/sys/dev/netmap

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 20:05:07 2020 New Revision: 362025 URL: https://svnweb.freebsd.org/changeset/base/362025 Log: MFC r361759 netmap: vtnet: fix race condition in rxsync This change prevents a race that happens when rxsync dequeues N-1 rx packets (with N being the

svn commit: r362024 - in stable/12/sys/dev: netmap virtio/network

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 20:04:20 2020 New Revision: 362024 URL: https://svnweb.freebsd.org/changeset/base/362024 Log: MFC r361758 netmap: vtnet: add vtnrx_nm_refill index to receive queues The new index tracks the next netmap slot that is going to be enqueued into the

svn commit: r362023 - stable/12/sys/dev/netmap

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 20:03:11 2020 New Revision: 362023 URL: https://svnweb.freebsd.org/changeset/base/362023 Log: MFC r361746 netmap: vale: fix disabled logs Modified: stable/12/sys/dev/netmap/if_vtnet_netmap.h Directory Properties: stable/12/ (props changed)

svn commit: r362022 - stable/12/sys/dev/virtio/network

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 20:02:38 2020 New Revision: 362022 URL: https://svnweb.freebsd.org/changeset/base/362022 Log: MFC r361745 netmap: vtnet: call netmap_rx_irq() under VQ lock The netmap_rx_irq() function normally wakes up user-space threads waiting for more packets.

svn commit: r362021 - stable/12/sys/dev/virtio/network

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 19:59:11 2020 New Revision: 362021 URL: https://svnweb.freebsd.org/changeset/base/362021 Log: MFC r361744 netmap: vtnet: honor NM_IRQ_RESCHED The netmap_rx_irq() function may return NM_IRQ_RESCHED to inform the driver that more work is pending, and

svn commit: r362020 - stable/12/sys/dev/netmap

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 19:58:03 2020 New Revision: 362020 URL: https://svnweb.freebsd.org/changeset/base/362020 Log: MFC r361698 netmap: if_vtnet: avoid netmap ring wraparound netmap assumes the one "slot" is left unused to distinguish the empty ring and full ring

svn commit: r362019 - stable/12/sys/dev/netmap

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 19:57:10 2020 New Revision: 362019 URL: https://svnweb.freebsd.org/changeset/base/362019 Log: MFC r361697 netmap: if_vtnet: replace vtnet_free_used() The functionality contained in this function is duplicated, as it is already available in

svn commit: r362018 - stable/12/sys/dev/netmap

2020-06-10 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 10 19:55:36 2020 New Revision: 362018 URL: https://svnweb.freebsd.org/changeset/base/362018 Log: MFC r361696 netmap: vtnet: fix RX virtqueue initialization bug The vtnet_netmap_rxq_populate() function erroneously assumed that kring->nr_hwcur = 0, i.e.

svn commit: r361982 - head/sys/net

2020-06-09 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 9 19:15:43 2020 New Revision: 361982 URL: https://svnweb.freebsd.org/changeset/base/361982 Log: iflib: netmap: honor netmap_irx_irq return values In the receive interrupt routine, always call netmap_rx_irq(). The latter function will return != NM_IRQ_PASS

svn commit: r361760 - head/sys/dev/netmap

2020-06-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 17:47:32 2020 New Revision: 361760 URL: https://svnweb.freebsd.org/changeset/base/361760 Log: netmap: vtnet: clean up rxsync disabled logs MFC after:1 week Modified: head/sys/dev/netmap/if_vtnet_netmap.h Modified:

svn commit: r361759 - head/sys/dev/netmap

2020-06-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 17:46:21 2020 New Revision: 361759 URL: https://svnweb.freebsd.org/changeset/base/361759 Log: netmap: vtnet: fix race condition in rxsync This change prevents a race that happens when rxsync dequeues N-1 rx packets (with N being the size of the netmap

svn commit: r361758 - in head/sys/dev: netmap virtio/network

2020-06-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 17:42:17 2020 New Revision: 361758 URL: https://svnweb.freebsd.org/changeset/base/361758 Log: netmap: vtnet: add vtnrx_nm_refill index to receive queues The new index tracks the next netmap slot that is going to be enqueued into the virtqueue. The index

svn commit: r361746 - head/sys/dev/netmap

2020-06-02 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 05:48:42 2020 New Revision: 361746 URL: https://svnweb.freebsd.org/changeset/base/361746 Log: netmap: vtnet: remove leftover memory barriers MFC after:1 week Modified: head/sys/dev/netmap/if_vtnet_netmap.h Modified:

svn commit: r361747 - head/sys/dev/netmap

2020-06-02 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 05:49:19 2020 New Revision: 361747 URL: https://svnweb.freebsd.org/changeset/base/361747 Log: netmap: vale: fix disabled logs MFC after:1 week Modified: head/sys/dev/netmap/netmap_vale.c Modified: head/sys/dev/netmap/netmap_vale.c

svn commit: r361745 - head/sys/dev/virtio/network

2020-06-02 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 05:27:29 2020 New Revision: 361745 URL: https://svnweb.freebsd.org/changeset/base/361745 Log: netmap: vtnet: call netmap_rx_irq() under VQ lock The netmap_rx_irq() function normally wakes up user-space threads waiting for more packets. In this case, it

svn commit: r361744 - head/sys/dev/virtio/network

2020-06-02 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jun 3 05:09:33 2020 New Revision: 361744 URL: https://svnweb.freebsd.org/changeset/base/361744 Log: netmap: vtnet: honor NM_IRQ_RESCHED The netmap_rx_irq() function may return NM_IRQ_RESCHED to inform the driver that more work is pending, and that netmap

svn commit: r361698 - head/sys/dev/netmap

2020-06-01 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jun 1 16:14:29 2020 New Revision: 361698 URL: https://svnweb.freebsd.org/changeset/base/361698 Log: netmap: if_vtnet: avoid netmap ring wraparound netmap assumes the one "slot" is left unused to distinguish the empty ring and full ring conditions. This

svn commit: r361697 - head/sys/dev/netmap

2020-06-01 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jun 1 16:12:09 2020 New Revision: 361697 URL: https://svnweb.freebsd.org/changeset/base/361697 Log: netmap: if_vtnet: replace vtnet_free_used() The functionality contained in this function is duplicated, as it is already available in vtnet_txq_free_mbufs()

svn commit: r361696 - head/sys/dev/netmap

2020-06-01 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jun 1 16:10:44 2020 New Revision: 361696 URL: https://svnweb.freebsd.org/changeset/base/361696 Log: netmap: vtnet: fix RX virtqueue initialization bug The vtnet_netmap_rxq_populate() function erroneously assumed that kring->nr_hwcur = 0, i.e. the kring was in

svn commit: r360837 - head/usr.sbin/bhyve

2020-05-09 Thread Vincenzo Maffione
Author: vmaffione Date: Sat May 9 07:57:41 2020 New Revision: 360837 URL: https://svnweb.freebsd.org/changeset/base/360837 Log: bhyve: update man page to describe the virtio-net mtu option r359704 introduced an 'mtu' option for the virtio-net device emulation. Update the man page to

svn commit: r359610 - stable/11/tools/tools/netmap

2020-04-03 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Apr 3 19:00:11 2020 New Revision: 359610 URL: https://svnweb.freebsd.org/changeset/base/359610 Log: netmap: vale-ctl: fix typo in man page Submitted by: Jose Luis Duran Modified: stable/11/tools/tools/netmap/vale-ctl.4 Modified:

svn commit: r359609 - stable/12/usr.sbin/valectl

2020-04-03 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Apr 3 18:55:22 2020 New Revision: 359609 URL: https://svnweb.freebsd.org/changeset/base/359609 Log: MFC r359489 valectl: fix typo in man page Submitted by: Jose Luis Duran MFC after: 3 days Modified: stable/12/usr.sbin/valectl/valectl.8

  1   2   3   4   >