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

2019-06-18 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 18 17:51:30 2019 New Revision: 349175 URL: https://svnweb.freebsd.org/changeset/base/349175 Log: bhyve: vtnet: fix locking on receive The vsc_rx_ready and the RX virtqueue is protected by the rx_mtx lock. However, pci_vtnet_ping_rxq() (currently called only

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

2019-07-01 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 1 20:37:35 2019 New Revision: 349581 URL: https://svnweb.freebsd.org/changeset/base/349581 Log: netmap: fix two panics with emulated adapter This patch fixes 2 panics. The first one is due to the current VNET not being set in the emulated adapter transmiss

svn commit: r349692 - stable/12/usr.sbin/bhyve

2019-07-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jul 3 19:54:37 2019 New Revision: 349692 URL: https://svnweb.freebsd.org/changeset/base/349692 Log: MFC r348834 bhyve: vtnet: simplify thread synchronization On vtnet device reset it is necessary to wait for threads to stop TX and RX processing. However,

svn commit: r349694 - stable/12/usr.sbin/bhyve

2019-07-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jul 3 19:56:05 2019 New Revision: 349694 URL: https://svnweb.freebsd.org/changeset/base/349694 Log: MFC r348929 bhyve: virtio: introduce vq_kick_enable() and vq_kick_disable() The VirtIO standard supports two schemes for notification suppression: a notifi

svn commit: r349695 - stable/12/usr.sbin/bhyve

2019-07-03 Thread Vincenzo Maffione
(empty, because file is newly added) +++ stable/12/usr.sbin/bhyve/net_utils.hWed Jul 3 19:57:23 2019 (r349695, copy of r349019, head/usr.sbin/bhyve/net_utils.h) @@ -0,0 +1,37 @@ +/*- + * Copyright (c) 2019 Vincenzo Maffione + * + * Redistribution and use in source and binary for

svn commit: r349696 - stable/12/usr.sbin/bhyve

2019-07-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jul 3 19:59:48 2019 New Revision: 349696 URL: https://svnweb.freebsd.org/changeset/base/349696 Log: MFC r349175 bhyve: vtnet: fix locking on receive The vsc_rx_ready and the RX virtqueue is protected by the rx_mtx lock. However, pci_vtnet_ping_rxq() (curr

svn commit: r349698 - stable/11/usr.sbin/bhyve

2019-07-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jul 3 20:05:25 2019 New Revision: 349698 URL: https://svnweb.freebsd.org/changeset/base/349698 Log: MFC r348834 bhyve: vtnet: simplify thread synchronization On vtnet device reset it is necessary to wait for threads to stop TX and RX processing. However,

svn commit: r349704 - stable/11/usr.sbin/bhyve

2019-07-03 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Jul 3 20:22:36 2019 New Revision: 349704 URL: https://svnweb.freebsd.org/changeset/base/349704 Log: MFC r348929 bhyve: virtio: introduce vq_kick_enable() and vq_kick_disable() The VirtIO standard supports two schemes for notification suppression: a notifi

svn commit: r349739 - stable/11/usr.sbin/bhyve

2019-07-04 Thread Vincenzo Maffione
(empty, because file is newly added) +++ stable/11/usr.sbin/bhyve/net_utils.hThu Jul 4 18:20:02 2019 (r349739, copy of r349019, head/usr.sbin/bhyve/net_utils.h) @@ -0,0 +1,37 @@ +/*- + * Copyright (c) 2019 Vincenzo Maffione + * + * Redistribution and use in source and binary for

svn commit: r349740 - stable/11/usr.sbin/bhyve

2019-07-04 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jul 4 18:21:01 2019 New Revision: 349740 URL: https://svnweb.freebsd.org/changeset/base/349740 Log: bhyve: vtnet: fix locking on receive The vsc_rx_ready and the RX virtqueue is protected by the rx_mtx lock. However, pci_vtnet_ping_rxq() (currently called only

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

2019-07-04 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jul 4 21:11:45 2019 New Revision: 349752 URL: https://svnweb.freebsd.org/changeset/base/349752 Log: netmap: fix kernel pointer printing in netmap_generic.c Print the adapter name rather than the address of the adapter to avoid kernel address leakage. PR:

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

2019-07-04 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jul 4 21:31:49 2019 New Revision: 349753 URL: https://svnweb.freebsd.org/changeset/base/349753 Log: netmap: Remove pointer leakage in netmap_mem2.c PR: 238641 Submitted by: Fuqian Huang Reviewed by: vmaffione MFC after:1 week Modified: h

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

2019-07-07 Thread Vincenzo Maffione
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.sbin/bhyve/net_backends.c Sun Jul 7 12:15:24 2019 (r349803) @@ -0,0 +1,806 @@ +/*- + * Copyright (c) 2019 Vincenzo Maffione + * + * Redistribution and use in

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

2019-07-09 Thread Vincenzo Maffione
== --- head/usr.sbin/bhyve/net_backends.c Tue Jul 9 20:28:53 2019 (r349866) +++ head/usr.sbin/bhyve/net_backends.c Tue Jul 9 22:04:33 2019 (r349867) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2019 Vincenzo Maffione

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

2019-07-09 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jul 9 22:05:58 2019 New Revision: 349868 URL: https://svnweb.freebsd.org/changeset/base/349868 Log: bhyve: net_backends.c: add missing __FBSDID Reviewed by: jhb MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D20883 Modified

svn commit: r349869 - head/usr.bin/calendar/calendars

2019-07-09 Thread Vincenzo Maffione
@@ 10/05 Hiroki Sato born in Yamagata, Japan, 1977 10/05 Chris Costello born in Houston, Texas, United States, 1985 10/09 Stefan Walter born in Werne, Nordrhein-Westfalen, Germany, 1978 -10/09 Vincenzo Maffione born in Foggia, Italy, 1988 10/11 Rick Macklem born in Ontario, Canada

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

2019-07-11 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jul 11 20:13:51 2019 New Revision: 349920 URL: https://svnweb.freebsd.org/changeset/base/349920 Log: MFC r349752 netmap: fix kernel pointer printing in netmap_generic.c Print the adapter name rather than the address of the adapter to avoid kernel address l

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

2019-07-11 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jul 11 20:14:59 2019 New Revision: 349921 URL: https://svnweb.freebsd.org/changeset/base/349921 Log: MFC r349753 netmap: Remove pointer leakage in netmap_mem2.c PR: 238641 Submitted by: Fuqian Huang Reviewed by:vmaffione Modified: s

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

2019-07-11 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Jul 11 20:29:50 2019 New Revision: 349922 URL: https://svnweb.freebsd.org/changeset/base/349922 Log: MFC r349752 netmap: fix kernel pointer printing in netmap_generic.c Print the adapter name rather than the address of the adapter to avoid kernel address l

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

2019-07-13 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Jul 13 08:08:25 2019 New Revision: 349966 URL: https://svnweb.freebsd.org/changeset/base/349966 Log: netmap: fix bug introduced by r349752 r349752 introduced a NULL pointer reference bug in the emulated netmap code. Reported by: lwhsu MFC after:3 da

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

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:12:54 2019 New Revision: 350006 URL: https://svnweb.freebsd.org/changeset/base/350006 Log: MFC r349966 netmap: fix bug introduced by r349752 r349752 introduced a NULL pointer reference bug in the emulated netmap code. Reported by:lwhsu

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

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:14:30 2019 New Revision: 350007 URL: https://svnweb.freebsd.org/changeset/base/350007 Log: MFC r349966 netmap: fix bug introduced by r349752 r349752 introduced a NULL pointer reference bug in the emulated netmap code. Reported by:lwhsu

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

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:25:49 2019 New Revision: 350009 URL: https://svnweb.freebsd.org/changeset/base/350009 Log: MFC r349581 netmap: fix two panics with emulated adapter This patch fixes 2 panics. The first one is due to the current VNET not being set in the emulated

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

2019-07-15 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jul 15 20:38:56 2019 New Revision: 350010 URL: https://svnweb.freebsd.org/changeset/base/350010 Log: MFC r349581 netmap: fix two panics with emulated adapter This patch fixes 2 panics. The first one is due to the current VNET not being set in the emulated

svn commit: r350059 - stable/12/usr.bin/calendar/calendars

2019-07-16 Thread Vincenzo Maffione
/calendar.freebsd Tue Jul 16 17:27:51 2019(r350059) @@ -378,7 +378,6 @@ 10/05 Hiroki Sato born in Yamagata, Japan, 1977 10/05 Chris Costello born in Houston, Texas, United States, 1985 10/09 Stefan Walter born in Werne, Nordrhein-Westfalen, Germany, 1978 -10/09 Vincenzo Maffione born

svn commit: r350193 - stable/12/usr.sbin/bhyve

2019-07-21 Thread Vincenzo Maffione
@@ +/*- + * Copyright (c) 2019 Vincenzo Maffione + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of

svn commit: r350195 - stable/12/usr.sbin/bhyve

2019-07-21 Thread Vincenzo Maffione
-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2019 Vincenzo Maffione * * Redistribution and use in source and binary forms, with or without Modified: stable/12/usr.sbin/bhyve/net_backends.h == --- stable/12/usr.sbin

svn commit: r350196 - stable/12/usr.sbin/bhyve

2019-07-21 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jul 21 11:28:40 2019 New Revision: 350196 URL: https://svnweb.freebsd.org/changeset/base/350196 Log: MFC r349868 bhyve: net_backends.c: add missing __FBSDID Reviewed by:jhb Differential Revision: https://reviews.freebsd.org/D20883 Modified: stable/

svn commit: r350197 - stable/12/usr.sbin/bhyve

2019-07-21 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jul 21 11:34:14 2019 New Revision: 350197 URL: https://svnweb.freebsd.org/changeset/base/350197 Log: MFC r349935 usr.sbin/bhyve: free resources when erroring out of pci_vtnet_init() Submitted by: seanc Coverity CID: 1402978 Approved by:vmaffione

svn commit: r350198 - stable/12/usr.sbin/bhyve

2019-07-21 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jul 21 11:40:00 2019 New Revision: 350198 URL: https://svnweb.freebsd.org/changeset/base/350198 Log: MFC r349952 usr.sbin/bhyve: close backend file descriptor during tap init error Submitted by: seanc Coverity CID: 1402953 Reviewed by:scottl, markj

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

2019-05-17 Thread Vincenzo Maffione
Author: vmaffione Date: Fri May 17 20:29:31 2019 New Revision: 347944 URL: https://svnweb.freebsd.org/changeset/base/347944 Log: netmap: align if_ptnet to the changes introduced by r347233 This removes non-functional SCTP checksum offload support. More information in the log message of r3

svn commit: r348516 - stable/12/tests/sys/netmap

2019-06-02 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jun 2 18:46:21 2019 New Revision: 348516 URL: https://svnweb.freebsd.org/changeset/base/348516 Log: MFC r346184 netmap: add test cases for multiple host rings Extend the netmap unit tests with new test cases for the multiple-host-rings feature introduced

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

2019-06-02 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jun 2 20:03:00 2019 New Revision: 348517 URL: https://svnweb.freebsd.org/changeset/base/348517 Log: MFC r347944 netmap: align if_ptnet to the changes introduced by r347233 This removes non-functional SCTP checksum offload support. More information in the

svn commit: r348669 - in head: share/misc usr.bin/calendar/calendars

2019-06-04 Thread Vincenzo Maffione
freebsd.org\n2008/07/21"] versus [label="Konrad Jankowski\nver...@freebsd.org\n2008/10/27"] +vmaffione [label="Vincenzo Maffione\nvmaffi...@freebsd.org\n2018/03/19"] weongyo [label="Weongyo Jeong\nweon...@freebsd.org\n2007/12/21"] wes [label="Wes

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

2019-06-09 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jun 9 12:41:21 2019 New Revision: 348834 URL: https://svnweb.freebsd.org/changeset/base/348834 Log: bhyve: vtnet: simplify thread synchronization On vtnet device reset it is necessary to wait for threads to stop TX and RX processing. However, the rx_in_progres

svn commit: r348928 - in stable/12: share/misc usr.bin/calendar/calendars

2019-06-11 Thread Vincenzo Maffione
reebsd.org\n2015/03/08"] vanhu [label="Yvan Vanhullebus\nva...@freebsd.org\n2008/07/21"] versus [label="Konrad Jankowski\nver...@freebsd.org\n2008/10/27"] +vmaffione [label="Vincenzo Maffione\nvmaffi...@freebsd.org\n2018/03/19"] weongyo [label="Weongyo Je

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

2019-06-11 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Jun 11 15:52:41 2019 New Revision: 348929 URL: https://svnweb.freebsd.org/changeset/base/348929 Log: bhyve: virtio: introduce vq_kick_enable() and vq_kick_disable() The VirtIO standard supports two schemes for notification suppression: a notification enable bit

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

2019-06-13 Thread Vincenzo Maffione
newly added) +++ head/usr.sbin/bhyve/net_utils.h Thu Jun 13 17:39:32 2019 (r349019) @@ -0,0 +1,37 @@ +/*- + * Copyright (c) 2019 Vincenzo Maffione + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +

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

2018-11-28 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 28 14:07:34 2018 New Revision: 341144 URL: https://svnweb.freebsd.org/changeset/base/341144 Log: netmap: set IFCAP_NETMAP in if_capabilities Revision r307394 removed (by mistake) the code that sets IFCAP_NETMAP in if_capabilities on netmap_attach. This patc

svn commit: r341145 - head/sys/dev/cxgbe

2018-11-28 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 28 15:29:58 2018 New Revision: 341145 URL: https://svnweb.freebsd.org/changeset/base/341145 Log: cxgbe: revert r309725 After the fix contained in r341144, cxgbe does not need anymore to set the IFCAP_NETMAP flag manually. Reviewed by: np Approved by

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

2018-12-01 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 1 11:50:52 2018 New Revision: 341361 URL: https://svnweb.freebsd.org/changeset/base/341361 Log: MFC r341144 netmap: set IFCAP_NETMAP in if_capabilities Revision r307394 removed (by mistake) the code that sets IFCAP_NETMAP in if_capabilities on netmap_

svn commit: r341362 - stable/12/sys/dev/cxgbe

2018-12-01 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 1 11:52:13 2018 New Revision: 341362 URL: https://svnweb.freebsd.org/changeset/base/341362 Log: MFC r341145 cxgbe: revert r309725 After the fix contained in r341144, cxgbe does not need anymore to set the IFCAP_NETMAP flag manually. Differential

svn commit: r341363 - stable/11/share/man/man4

2018-12-01 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 1 12:08:16 2018 New Revision: 341363 URL: https://svnweb.freebsd.org/changeset/base/341363 Log: MFC r339548 man: fix vale(4) port naming The current documentation describing the syntax of a VALE port is wrong. This patch fixes it to make it consistent

svn commit: r341430 - head/share/man/man4

2018-12-03 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 3 17:17:59 2018 New Revision: 341430 URL: https://svnweb.freebsd.org/changeset/base/341430 Log: netmap(4): improve man page Reviewed by: bcr Differential Revision:https://reviews.freebsd.org/D18057 Modified: head/share/man/man4/netmap.4 Modifi

svn commit: r341431 - in stable/11: share/man/man4 tools/tools/netmap

2018-12-03 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 3 17:40:54 2018 New Revision: 341431 URL: https://svnweb.freebsd.org/changeset/base/341431 Log: MFC r339659 netmap: add man page for the bridge program Added bridge(8). Also, minor fixes to the netmap "bridge" application: - indentation fixes and c

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

2018-12-03 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 3 17:46:53 2018 New Revision: 341432 URL: https://svnweb.freebsd.org/changeset/base/341432 Log: MFC r339685 netmap: add man page for the vale-ctl program Added man page for vale-ctl program. Small fixes to vale-ctl, including the support for -m option

svn commit: r341434 - in stable/11: share/man/man4 tools/tools/netmap

2018-12-03 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 3 17:51:22 2018 New Revision: 341434 URL: https://svnweb.freebsd.org/changeset/base/341434 Log: MFC r340279 netmap: add load balancer program Add the lb program, which is able to load-balance input traffic received from a netmap port over M groups, wi

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

2018-12-03 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 4 07:30:02 2018 New Revision: 341457 URL: https://svnweb.freebsd.org/changeset/base/341457 Log: MFC r340325 netmap: pkt-gen: several updates from upstream Various improvements to the netmap pkt-gen program: - indentation fixes - support for IPV

svn commit: r341477 - in stable/11/sys: conf dev/cxgbe dev/e1000 dev/ixgbe dev/ixl dev/netmap dev/re modules/netmap net

2018-12-04 Thread Vincenzo Maffione
orce_update) { int crclen = (ix_crcstrip || IXGBE_IS_VF(adapter) ) ? 0 : 4; - uint16_t slot_flags = kring->nkr_slot_flags; nic_i = rxr->next_to_check; // or also k2n(kring->nr_hwtail) nm_i = netmap_idx_n2k(kring, nic_i); @@ -393,7 +406,7 @

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

2018-12-04 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 4 17:47:43 2018 New Revision: 341480 URL: https://svnweb.freebsd.org/changeset/base/341480 Log: MFC r341144 netmap: set IFCAP_NETMAP in if_capabilities Revision r307394 removed (by mistake) the code that sets IFCAP_NETMAP in if_capabilities on netmap_

svn commit: r341478 - in stable/11/sys/dev: netmap virtio/network

2018-12-04 Thread Vincenzo Maffione
(r341478) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 Vincenzo Maffione, Luigi Rizzo. All rights reserved. + * Copyright (C) 2014-2018 Vincenzo Maffione, Luigi Rizzo. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the

svn commit: r341479 - stable/11/share/man/man9

2018-12-04 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 4 17:46:06 2018 New Revision: 341479 URL: https://svnweb.freebsd.org/changeset/base/341479 Log: MFC r340475 ifnet(9): Add description of IFCAP_NETMAP Describe IFCAP_NETMAP adding a cross reference to netmap(4). Reviewed by:bcr, 0mp Approved b

svn commit: r341481 - stable/11/sys/dev/cxgbe

2018-12-04 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 4 17:49:44 2018 New Revision: 341481 URL: https://svnweb.freebsd.org/changeset/base/341481 Log: MFC r341145 cxgbe: revert r309725 After the fix contained in r341144, cxgbe does not need anymore to set the IFCAP_NETMAP flag manually. Reviewed by:

svn commit: r341482 - stable/11/share/man/man4

2018-12-04 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 4 17:53:56 2018 New Revision: 341482 URL: https://svnweb.freebsd.org/changeset/base/341482 Log: MFC r341430 netmap(4): improve man page Reviewed by:bcr Differential Revision: https://reviews.freebsd.org/D18057 Modified: stable/11/share/man/man

svn commit: r341483 - stable/12/share/man/man4

2018-12-04 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 4 17:57:01 2018 New Revision: 341483 URL: https://svnweb.freebsd.org/changeset/base/341483 Log: MFC r341430 netmap(4): improve man page Reviewed by:bcr Differential Revision: https://reviews.freebsd.org/D18057 Modified: stable/12/share/man/man

svn commit: r341516 - in head/sys: conf dev/netmap modules/netmap net

2018-12-05 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Dec 5 11:57:16 2018 New Revision: 341516 URL: https://svnweb.freebsd.org/changeset/base/341516 Log: netmap: align codebase to the current upstream (760279cfb2730a585) Changelist: - Replace netmap passthrough host support with a more general mechanism t

svn commit: r341588 - stable/11/sys/modules/netmap

2018-12-05 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Dec 5 15:05:26 2018 New Revision: 341588 URL: https://svnweb.freebsd.org/changeset/base/341588 Log: netmap: fix module Makefile Reported by: mav Modified: stable/11/sys/modules/netmap/Makefile Modified: stable/11/sys/modules/netmap/Makefile

svn commit: r341589 - head/sys/net

2018-12-05 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Dec 5 15:38:52 2018 New Revision: 341589 URL: https://svnweb.freebsd.org/changeset/base/341589 Log: netmap.h: include stdatomic.h The stdatomic.h header exports atomic_thread_fence(), that can be used to implement the nm_stst_barrier() macro needed by netmap

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

2018-12-06 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Dec 6 09:45:25 2018 New Revision: 341624 URL: https://svnweb.freebsd.org/changeset/base/341624 Log: netmap: netmap_transmit should honor bpf packet tap hook This allows tcpdump to capture outbound kernel packets while in netmap mode Submitted by: Marc de

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

2018-12-07 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Dec 7 11:47:42 2018 New Revision: 341680 URL: https://svnweb.freebsd.org/changeset/base/341680 Log: netmap: remove dead code obsoleted by iflib The iflib subsystem implements netmap support in a driver-independent way (sys/net/iflib.c). We can therefore remove

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

2018-12-08 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 8 12:52:09 2018 New Revision: 341726 URL: https://svnweb.freebsd.org/changeset/base/341726 Log: tools: netmap: pkt-gen: check packet length against interface MTU Validate the value of the -l argument (packet length) against the MTU of the netmap port. In

svn commit: r341815 - in stable/12/sys: conf dev/netmap modules/netmap net

2018-12-11 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Dec 11 11:31:13 2018 New Revision: 341815 URL: https://svnweb.freebsd.org/changeset/base/341815 Log: MFC r341516, r341589 netmap: align codebase to the current upstream (760279cfb2730a585) Changelist: - Replace netmap passthrough host support with a more

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

2018-12-12 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Dec 12 16:32:15 2018 New Revision: 341992 URL: https://svnweb.freebsd.org/changeset/base/341992 Log: netmap: fix warning in netmap_kloop.c Reported by: markj MFC after:3 days Modified: head/sys/dev/netmap/netmap_kloop.c Modified: head/sys/dev/netmap/ne

svn commit: r341993 - head/share/man/man4

2018-12-12 Thread Vincenzo Maffione
is newly added) +++ head/share/man/man4/ptnet.4 Wed Dec 12 17:05:47 2018(r341993) @@ -0,0 +1,140 @@ +.\" Copyright (c) 2018 Vincenzo Maffione +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, ar

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

2018-12-13 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Dec 13 09:39:05 2018 New Revision: 342031 URL: https://svnweb.freebsd.org/changeset/base/342031 Log: MFC r341624 netmap: netmap_transmit should honor bpf packet tap hook This allows tcpdump to capture outbound kernel packets while in netmap mode Submi

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

2018-12-13 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Dec 13 09:40:06 2018 New Revision: 342032 URL: https://svnweb.freebsd.org/changeset/base/342032 Log: MFC r341726 tools: netmap: pkt-gen: check packet length against interface MTU Validate the value of the -l argument (packet length) against the MTU of the n

svn commit: r342033 - in stable/11/sys: conf dev/netmap modules/netmap net

2018-12-13 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Dec 13 10:13:29 2018 New Revision: 342033 URL: https://svnweb.freebsd.org/changeset/base/342033 Log: MFC r341516, r341589 netmap: align codebase to the current upstream (760279cfb2730a585) Changelist: - Replace netmap passthrough host support with a more

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

2018-12-13 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Dec 13 10:17:32 2018 New Revision: 342034 URL: https://svnweb.freebsd.org/changeset/base/342034 Log: MFC r341624 netmap: netmap_transmit should honor bpf packet tap hook This allows tcpdump to capture outbound kernel packets while in netmap mode Submi

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

2018-12-13 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Dec 13 10:18:31 2018 New Revision: 342035 URL: https://svnweb.freebsd.org/changeset/base/342035 Log: MFC r341726 tools: netmap: pkt-gen: check packet length against interface MTU Validate the value of the -l argument (packet length) against the MTU of the n

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

2018-12-14 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Dec 14 09:06:56 2018 New Revision: 342070 URL: https://svnweb.freebsd.org/changeset/base/342070 Log: MFC r341680 netmap: remove dead code obsoleted by iflib The iflib subsystem implements netmap support in a driver-independent way (sys/net/iflib.c). We can

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

2018-12-15 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 15 18:05:05 2018 New Revision: 342130 URL: https://svnweb.freebsd.org/changeset/base/342130 Log: MFC r341992 netmap: fix warning in netmap_kloop.c Reported by:markj Modified: stable/12/sys/dev/netmap/netmap_kloop.c Directory Properties: stable/1

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

2018-12-15 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 15 18:07:59 2018 New Revision: 342131 URL: https://svnweb.freebsd.org/changeset/base/342131 Log: MFC r341992 netmap: fix warning in netmap_kloop.c Reported by:markj Modified: stable/11/sys/dev/netmap/netmap_kloop.c Directory Properties: stable/1

svn commit: r342132 - stable/12/share/man/man4

2018-12-15 Thread Vincenzo Maffione
+1,140 @@ +.\" Copyright (c) 2018 Vincenzo Maffione +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions o

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

2018-12-21 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Dec 21 11:32:55 2018 New Revision: 342299 URL: https://svnweb.freebsd.org/changeset/base/342299 Log: netmap: pipes: make sure both ends use the same number of slots Modified: head/sys/dev/netmap/netmap_pipe.c Modified: head/sys/dev/netmap/netmap_pipe.c ===

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

2018-12-21 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Dec 21 11:50:14 2018 New Revision: 342300 URL: https://svnweb.freebsd.org/changeset/base/342300 Log: netmap: move buf_size validation code to its own function This code validates the netmap buf_size against the interface MTU and maximum descriptor size, to make

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

2018-12-21 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Dec 21 13:56:57 2018 New Revision: 342301 URL: https://svnweb.freebsd.org/changeset/base/342301 Log: netmap: nmreplay: import various fixes from upstream (2704a51839906) Changelist: - General reformatting - Fix packet duplication in cons(). Whenever c

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

2018-12-21 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Dec 21 14:45:10 2018 New Revision: 342302 URL: https://svnweb.freebsd.org/changeset/base/342302 Log: netmap: update nmreplay(8) Small modifications to the nmreplay man page. Used igor and mandoc tools to fix warnings and errors. Reviewed by: bcr MFC aft

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

2018-12-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 22 15:15:45 2018 New Revision: 342368 URL: https://svnweb.freebsd.org/changeset/base/342368 Log: netmap: fix bug in netmap_poll() optimization The bug was introduced by r339639, although it is present in the upstream netmap code since 2015. It is due to res

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

2018-12-22 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Dec 22 16:23:42 2018 New Revision: 342369 URL: https://svnweb.freebsd.org/changeset/base/342369 Log: netmap: fix txsync check in netmap poll To check if txsync can be skipped, it is necessary to look for unseen TX space. However, this means comparing ring->cur

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

2018-12-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 24 14:47:26 2018 New Revision: 342390 URL: https://svnweb.freebsd.org/changeset/base/342390 Log: MFC r342299 netmap: pipes: make sure both ends use the same number of slots Modified: stable/12/sys/dev/netmap/netmap_pipe.c Directory Properties: stable/12/

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

2018-12-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 24 14:48:28 2018 New Revision: 342391 URL: https://svnweb.freebsd.org/changeset/base/342391 Log: MFC r342300 netmap: move buf_size validation code to its own function This code validates the netmap buf_size against the interface MTU and maximum descrip

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

2018-12-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 24 14:49:59 2018 New Revision: 342392 URL: https://svnweb.freebsd.org/changeset/base/342392 Log: MFC r342301 netmap: nmreplay: import various fixes from upstream (2704a51839906) Changelist: - General reformatting - Fix packet duplication in c

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

2018-12-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 24 14:51:13 2018 New Revision: 342393 URL: https://svnweb.freebsd.org/changeset/base/342393 Log: MFC r342302 netmap: update nmreplay(8) Small modifications to the nmreplay man page. Used igor and mandoc tools to fix warnings and errors. Reviewed b

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

2018-12-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 24 15:07:36 2018 New Revision: 342394 URL: https://svnweb.freebsd.org/changeset/base/342394 Log: MFC r342299 netmap: pipes: make sure both ends use the same number of slots Modified: stable/11/sys/dev/netmap/netmap_pipe.c Directory Properties: stable/11/

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

2018-12-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Dec 24 15:08:19 2018 New Revision: 342395 URL: https://svnweb.freebsd.org/changeset/base/342395 Log: MFC r342300 netmap: move buf_size validation code to its own function This code validates the netmap buf_size against the interface MTU and maximum descrip

svn commit: r345762 - in stable/12: sys/dev/netmap sys/net tests/sys/netmap

2019-04-01 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Apr 1 10:51:24 2019 New Revision: 345762 URL: https://svnweb.freebsd.org/changeset/base/345762 Log: MFC r345269, r345323 netmap: add support for multiple host rings Some applications forward from/to host rings most or all the traffic received or sent on a

svn commit: r346184 - head/tests/sys/netmap

2019-04-13 Thread Vincenzo Maffione
Author: vmaffione Date: Sat Apr 13 12:50:47 2019 New Revision: 346184 URL: https://svnweb.freebsd.org/changeset/base/346184 Log: netmap: add test cases for multiple host rings Extend the netmap unit tests with new test cases for the multiple-host-rings feature introduced by r345269.

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

2019-02-18 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Feb 18 14:21:41 2019 New Revision: 344253 URL: https://svnweb.freebsd.org/changeset/base/344253 Log: netmap: don't schedule kqueue notify task when kqueue is not used This change adds a counter (kqueue_users) to keep track of how many kqueue users are referenci

svn commit: r344272 - stable/11/sys/dev/vmware/vmxnet3

2019-02-19 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Feb 19 10:07:48 2019 New Revision: 344272 URL: https://svnweb.freebsd.org/changeset/base/344272 Log: vmx(4): add native netmap support This change adds native netmap support for the vmx(4) adapter (vmxnet3). Native support comes for free in 12, since the driver

Re: svn commit: r344272 - stable/11/sys/dev/vmware/vmxnet3

2019-02-19 Thread Vincenzo Maffione
Hi Rodney, Il giorno mar 19 feb 2019 alle ore 15:36 Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> ha scritto: > > Author: vmaffione > > Date: Tue Feb 19 10:07:48 2019 > > New Revision: 344272 > > URL: https://svnweb.freebsd.org/changeset/base/344272 > > > > Log: > > vmx(4): add native net

Re: svn commit: r344272 - stable/11/sys/dev/vmware/vmxnet3

2019-02-19 Thread Vincenzo Maffione
Il giorno mar 19 feb 2019 alle ore 15:47 Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> ha scritto: > > Hi Rodney, > > > > > > Il giorno mar 19 feb 2019 alle ore 15:36 Rodney W. Grimes < > > free...@pdx.rh.cn85.dnsmgr.net> ha scritto: > > > > > > Author: vmaffione > > > > Date: Tue Feb 19 10:0

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

2019-02-25 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Feb 25 08:50:25 2019 New Revision: 344508 URL: https://svnweb.freebsd.org/changeset/base/344508 Log: MFC r344253 netmap: don't schedule kqueue notify task when kqueue is not used This change adds a counter (kqueue_users) to keep track of how many kqueue us

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

2019-02-25 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Feb 25 09:13:33 2019 New Revision: 344509 URL: https://svnweb.freebsd.org/changeset/base/344509 Log: MFC r343579, r344253 netmap: fix lock order reversal related to kqueue usage When using poll(), select() or kevent() on netmap file descriptors, netmap exe

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

2019-02-25 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Feb 25 09:57:06 2019 New Revision: 344510 URL: https://svnweb.freebsd.org/changeset/base/344510 Log: netmap: remove redundant call to nm_set_native_flags() This redundant call was introduced by mistake in r343772. MFC after:3 days Sponsored by: Sunny V

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

2019-02-28 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Feb 28 09:42:03 2019 New Revision: 344658 URL: https://svnweb.freebsd.org/changeset/base/344658 Log: MFC r344510 netmap: remove redundant call to nm_set_native_flags() This redundant call was introduced by mistake in r343772. Sponsored by: Sunny Valle

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

2019-02-28 Thread Vincenzo Maffione
Author: vmaffione Date: Thu Feb 28 09:40:26 2019 New Revision: 344657 URL: https://svnweb.freebsd.org/changeset/base/344657 Log: MFC r344510 netmap: remove redundant call to nm_set_native_flags() This redundant call was introduced by mistake in r343772. Sponsored by: Sunny Valle

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

2019-03-01 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Mar 1 09:10:16 2019 New Revision: 344696 URL: https://svnweb.freebsd.org/changeset/base/344696 Log: netmap: pkt-gen: fix bug in send_packets() The send_packets() function was using ring->cur as index to scan the transmit ring. This function may also set ring->

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

2019-03-08 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Mar 8 08:26:06 2019 New Revision: 344917 URL: https://svnweb.freebsd.org/changeset/base/344917 Log: MFC r344696: netmap: pkt-gen: fix bug in send_packets() The send_packets() function was using ring->cur as index to scan the transmit ring. This function m

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

2019-03-08 Thread Vincenzo Maffione
Author: vmaffione Date: Fri Mar 8 08:27:33 2019 New Revision: 344918 URL: https://svnweb.freebsd.org/changeset/base/344918 Log: MFC r344696: netmap: pkt-gen: fix bug in send_packets() The send_packets() function was using ring->cur as index to scan the transmit ring. This function m

svn commit: r345269 - in head/sys: dev/netmap net

2019-03-18 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Mar 18 12:22:23 2019 New Revision: 345269 URL: https://svnweb.freebsd.org/changeset/base/345269 Log: netmap: add support for multiple host rings Some applications forward from/to host rings most or all the traffic received or sent on a physical interface. In th

  1   2   3   4   >