svn commit: r363793 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-08-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 3 09:18:59 2020 New Revision: 363793 URL: https://svnweb.freebsd.org/changeset/base/363793 Log: MFC r363078: Implement the bitmap_subset() function in the LinuxKPI. This function checks if the bitmap pointed to by the first argument is a subset of the bitmap

svn commit: r363792 - in stable/11/sys: compat/linuxkpi/common/include/linux sys

2020-08-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 3 09:15:38 2020 New Revision: 363792 URL: https://svnweb.freebsd.org/changeset/base/363792 Log: MFC r363077: Implement the array_size() function in the LinuxKPI. This function basically multiplies its two arguments and returns SIZE_MAX if the result overflow

svn commit: r363791 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-08-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 3 09:14:16 2020 New Revision: 363791 URL: https://svnweb.freebsd.org/changeset/base/363791 Log: MFC r361549: Add overflow.h to the LinuxKPI. Only add check_add_overflow and check_mul_overflow as those are the only two needed function by DRM v5.3. Both g

svn commit: r363790 - in stable/12/sys: compat/linuxkpi/common/include/linux sys

2020-08-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 3 09:13:06 2020 New Revision: 363790 URL: https://svnweb.freebsd.org/changeset/base/363790 Log: MFC r363077: Implement the array_size() function in the LinuxKPI. This function basically multiplies its two arguments and returns SIZE_MAX if the result overflow

svn commit: r363789 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-08-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 3 09:11:10 2020 New Revision: 363789 URL: https://svnweb.freebsd.org/changeset/base/363789 Log: MFC r361549: Add overflow.h to the LinuxKPI. Only add check_add_overflow and check_mul_overflow as those are the only two needed function by DRM v5.3. Both g

svn commit: r363155 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:41:55 2020 New Revision: 363155 URL: https://svnweb.freebsd.org/changeset/base/363155 Log: MFC r362781 and r362794: Implement is_signed(), type_max() and type_min() function macros in the LinuxKPI. Sponsored by: Mellanox Technologies Modified: sta

svn commit: r363154 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:40:55 2020 New Revision: 363154 URL: https://svnweb.freebsd.org/changeset/base/363154 Log: MFC r362781 and r362794: Implement is_signed(), type_max() and type_min() function macros in the LinuxKPI. Sponsored by: Mellanox Technologies Modified: sta

svn commit: r363153 - stable/11/sys/compat/linuxkpi/common/src

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:37:59 2020 New Revision: 363153 URL: https://svnweb.freebsd.org/changeset/base/363153 Log: MFC r362829: The "pid" field in the LinuxKPI task struct is typically set to the thread ID and not the process ID. Make sure the linux_task_exiting() function uses

svn commit: r363152 - stable/12/sys/compat/linuxkpi/common/src

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:36:57 2020 New Revision: 363152 URL: https://svnweb.freebsd.org/changeset/base/363152 Log: MFC r362829: The "pid" field in the LinuxKPI task struct is typically set to the thread ID and not the process ID. Make sure the linux_task_exiting() function uses

svn commit: r363151 - in stable/11/sys: dev/mlx4/mlx4_core dev/mlx4/mlx4_en dev/mlx4/mlx4_ib dev/mlx5/mlx5_core dev/mlx5/mlx5_en dev/mlx5/mlx5_fpga_tools dev/mlx5/mlx5_ib dev/mthca ofed/drivers/inf...

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:34:47 2020 New Revision: 363151 URL: https://svnweb.freebsd.org/changeset/base/363151 Log: MFC r362953: Infiniband clients must be attached and detached in a specific order in ibcore. Currently the linking order of the infiniband, IB, modules decide i

svn commit: r363150 - in stable/12/sys: dev/mlx4/mlx4_core dev/mlx4/mlx4_en dev/mlx4/mlx4_ib dev/mlx5/mlx5_core dev/mlx5/mlx5_en dev/mlx5/mlx5_fpga_tools dev/mlx5/mlx5_ib dev/mthca ofed/drivers/inf...

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:33:06 2020 New Revision: 363150 URL: https://svnweb.freebsd.org/changeset/base/363150 Log: MFC r362953: Infiniband clients must be attached and detached in a specific order in ibcore. Currently the linking order of the infiniband, IB, modules decide i

svn commit: r363149 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:29:11 2020 New Revision: 363149 URL: https://svnweb.freebsd.org/changeset/base/363149 Log: MFC r362946: Fix include file order in io.h in the LinuxKPI. Make sure sys/types.h is included before machine/vm.h. PR: 247775 Submitted by: pkubaj

svn commit: r363148 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 13 15:28:06 2020 New Revision: 363148 URL: https://svnweb.freebsd.org/changeset/base/363148 Log: MFC r362946: Fix include file order in io.h in the LinuxKPI. Make sure sys/types.h is included before machine/vm.h. PR: 247775 Submitted by: pkubaj

Re: svn commit: r362361 - in head/sys: compat/linuxkpi/common/src vm

2020-07-13 Thread Hans Petter Selasky
On 2020-06-19 05:32, Mark Johnston wrote: +++ head/sys/vm/vm_map.hFri Jun 19 03:32:04 2020(r362361) @@ -255,6 +255,17 @@ vm_map_modflags(vm_map_t map, vm_flags_t set, vm_flags { map->flags = (map->flags | set) & ~clear; } + +static inline bool +vm_map_range_valid(vm_ma

svn commit: r363078 - head/sys/compat/linuxkpi/common/include/linux

2020-07-10 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jul 10 12:06:18 2020 New Revision: 363078 URL: https://svnweb.freebsd.org/changeset/base/363078 Log: Implement the bitmap_subset() function in the LinuxKPI. This function checks if the bitmap pointed to by the first argument is a subset of the bitmap pointed to by

svn commit: r363077 - in head/sys: compat/linuxkpi/common/include/linux sys

2020-07-10 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jul 10 11:27:54 2020 New Revision: 363077 URL: https://svnweb.freebsd.org/changeset/base/363077 Log: Implement the array_size() function in the LinuxKPI. This function basically multiplies its two arguments and returns SIZE_MAX if the result overflows the size_t ty

Re: svn commit: r362962 - head/sys/net

2020-07-09 Thread Hans Petter Selasky
On 2020-07-06 16:52, Mark Johnston wrote: Author: markj Date: Mon Jul 6 14:52:09 2020 New Revision: 362962 URL: https://svnweb.freebsd.org/changeset/base/362962 Log: iflib: Fix handling of mbuf cluster allocation failures. When refilling an rx freelist, make sure we only update the ha

svn commit: r362953 - in head/sys: dev/mlx4/mlx4_core dev/mlx4/mlx4_en dev/mlx4/mlx4_ib dev/mlx5/mlx5_core dev/mlx5/mlx5_en dev/mlx5/mlx5_fpga_tools dev/mlx5/mlx5_ib dev/mthca ofed/drivers/infiniba...

2020-07-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jul 6 08:50:11 2020 New Revision: 362953 URL: https://svnweb.freebsd.org/changeset/base/362953 Log: Infiniband clients must be attached and detached in a specific order in ibcore. Currently the linking order of the infiniband, IB, modules decide in which order

svn commit: r362946 - head/sys/compat/linuxkpi/common/include/linux

2020-07-05 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jul 5 19:38:36 2020 New Revision: 362946 URL: https://svnweb.freebsd.org/changeset/base/362946 Log: Fix include file order in io.h in the LinuxKPI. Make sure sys/types.h is included before machine/vm.h. PR: 247775 Submitted by: pkubaj@ MFC after:

Re: svn commit: r362829 - head/sys/compat/linuxkpi/common/src

2020-07-01 Thread Hans Petter Selasky
On 2020-07-01 12:30, Konstantin Belousov wrote: I see no point in repeating the same pfind/tdfind calls, better to convert them to pget(), and have this code in one intended place. I wonder if we can convert all cases in linux_current.c to use pget(). Could you have a look too? --HPS ___

Re: svn commit: r362829 - head/sys/compat/linuxkpi/common/src

2020-07-01 Thread Hans Petter Selasky
On 2020-07-01 11:21, Konstantin Belousov wrote: It should be expressed as pget(pid, 0); instead of duplicating. Hi, Currently the LinuxKPI style is to use tdfind() and pfind(). If you look at linux_current.c you see multiple uses of the exact same syntax. Quickly looking at the pget() imple

svn commit: r362829 - head/sys/compat/linuxkpi/common/src

2020-07-01 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jul 1 08:23:57 2020 New Revision: 362829 URL: https://svnweb.freebsd.org/changeset/base/362829 Log: The "pid" field in the LinuxKPI task struct is typically set to the thread ID and not the process ID. Make sure the linux_task_exiting() function uses tdfind() to

svn commit: r362794 - head/sys/compat/linuxkpi/common/include/linux

2020-06-30 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jun 30 08:41:33 2020 New Revision: 362794 URL: https://svnweb.freebsd.org/changeset/base/362794 Log: Document the is_signed(), type_max() and type_min() function macros in the LinuxKPI. Try to make the function argument more readable. Suggested by: several MFC

Re: svn commit: r362781 - head/sys/compat/linuxkpi/common/include/linux

2020-06-30 Thread Hans Petter Selasky
On 2020-06-29 22:32, Ian Lepore wrote: On Mon, 2020-06-29 at 14:26 -0600, Warner Losh wrote: On Mon, Jun 29, 2020, 2:15 PM Ravi Pokala wrote: -Original Message- From: on behalf of Hans Petter Selasky Date: 2020-06-29, Monday at 06:08 To: , , < svn-src-h...@freebsd.org> Subjec

svn commit: r362781 - head/sys/compat/linuxkpi/common/include/linux

2020-06-29 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 29 13:08:40 2020 New Revision: 362781 URL: https://svnweb.freebsd.org/changeset/base/362781 Log: Implement is_signed(), type_max() and type_min() function macros in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sy

svn commit: r362571 - stable/11/sys/dev/mlx4/mlx4_en

2020-06-23 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 24 05:12:00 2020 New Revision: 362571 URL: https://svnweb.freebsd.org/changeset/base/362571 Log: MFC r362271: Allow multicast packets to be received in promiscious mode, in mlx4en(4). Make sure we disable the multicast filter in promiscious mode aswell as wh

svn commit: r362570 - stable/12/sys/dev/mlx4/mlx4_en

2020-06-23 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 24 05:10:41 2020 New Revision: 362570 URL: https://svnweb.freebsd.org/changeset/base/362570 Log: MFC r362271: Allow multicast packets to be received in promiscious mode, in mlx4en(4). Make sure we disable the multicast filter in promiscious mode aswell as wh

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
Hi Alexandr, On 2020-06-21 18:54, Alexandr Kovalenko wrote: On Sun, Jun 21, 2020 at 5:41 PM Hans Petter Selasky wrote: On 2020-06-21 18:11, Alexey Dokuchaev wrote: On Sun, Jun 21, 2020 at 06:01:40PM +0200, Hans Petter Selasky wrote: On 2020-06-21 17:53, Alexandr Kovalenko wrote: I wonder

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
Hi Alexey, On 2020-06-21 18:11, Alexey Dokuchaev wrote: On Sun, Jun 21, 2020 at 06:01:40PM +0200, Hans Petter Selasky wrote: On 2020-06-21 17:53, Alexandr Kovalenko wrote: I wonder should we also rename Master's Degree? Would you throw away yours? https://en.wiktionary.org/wiki/maste

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 17:53, Alexandr Kovalenko wrote: On Sun, Jun 21, 2020 at 4:38 PM Hans Petter Selasky wrote: On 2020-06-21 17:35, Alexander Motin wrote: Please revert. This is not the area we should make standards at. Besides, you've modified contributed software (file and tcpdump) f

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 17:35, Alexander Motin wrote: Please revert. This is not the area we should make standards at. Besides, you've modified contributed software (file and tcpdump) for no FreeBSD-specifc reason instead of properly upstreaming your change, if you really like so. Noted. --HPS

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 16:43, Warner Losh wrote: Please revert. Another part if the guidance was that industry standard terms should be used until the industry renames them. This makes FreeBSD unique for no good reason. Hi Warner, Have you forgotten that FreeBSD is an industry leader in many areas and

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
Hi Alexey, On 2020-06-21 16:27, Alexey Dokuchaev wrote: There is no chicken and egg problem here Hans. You're inventing bogus and unsound terminology that does no good and only confuses our users, code readers, and makes us as a project look like idiots. There is no unsound terminology: https

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 15:47, Emmanuel Vadot wrote: What's more clear about calling something that is called Master Boot Record something else ? What's next ? Will you contact the BBC so they redub all Doctor Who episode where "The Master" appears ? Contact Disney so the release a new version of Tron

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
Hi Alexey, On 2020-06-21 16:02, Alexey Dokuchaev wrote: Last edited by Hselasky (talk | contribs) 0 seconds ago. Ah, so you first make changes to FreeBSD and then attempt to edit the Wikipedia to look like it supports your views? Seriously Hans?! This is a chicken an egg problem. It was easi

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 15:46, Hans Petter Selasky wrote: On 2020-06-21 15:45, Alexey Dokuchaev wrote: ... -#https://en.wikipedia.org/wiki/Master_boot_record#PTE +#https://en.wikipedia.org/wiki/Main_boot_record#PTE Wikipedia does not have an article with this name. Yes, it does: https

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 15:46, Hans Petter Selasky wrote: On 2020-06-21 15:45, Alexey Dokuchaev wrote: ... -#https://en.wikipedia.org/wiki/Master_boot_record#PTE +#https://en.wikipedia.org/wiki/Main_boot_record#PTE Wikipedia does not have an article with this name. Yes, it does: https

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Hans Petter Selasky
On 2020-06-21 15:45, Alexey Dokuchaev wrote: ... -#https://en.wikipedia.org/wiki/Master_boot_record#PTE +#https://en.wikipedia.org/wiki/Main_boot_record#PTE Wikipedia does not have an article with this name. Yes, it does: https://en.wikipedia.org/wiki/Main_boot_record No, need to revert. --H

svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbin...

2020-06-21 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 21 13:34:08 2020 New Revision: 362466 URL: https://svnweb.freebsd.org/changeset/base/362466 Log: Improve wording to be more precise and clear. No functional change intended. s/Master Boot/Main Boot/ (also called MBR) MFC after:1 week Sponsored by:

svn commit: r362437 - head/sys/dev/sound/usb

2020-06-20 Thread Hans Petter Selasky
Author: hselasky Date: Sat Jun 20 14:16:24 2020 New Revision: 362437 URL: https://svnweb.freebsd.org/changeset/base/362437 Log: Improve debug message to be more precise and clear. For the sake of the record, this is the last use of the words master and slave in the FreeBSD's USB stack, dr

Re: svn commit: r362422 - head/sbin/dump

2020-06-20 Thread Hans Petter Selasky
On 2020-06-20 13:10, Rodney W. Grimes wrote: Author: imp Date: Sat Jun 20 04:19:17 2020 New Revision: 362422 URL:https://svnweb.freebsd.org/changeset/base/362422 Log: Increase the whimsy in this file by famring dump's work out to minions. Adjust variables accordingly. Thankfully, we are a

svn commit: r362323 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:55:46 2020 New Revision: 362323 URL: https://svnweb.freebsd.org/changeset/base/362323 Log: MFC r361828: Ensure pci_channel_offline() actually queries the PCI register space, and not only the software cache of that register. Else pci_channel_offline() w

svn commit: r362322 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:53:40 2020 New Revision: 362322 URL: https://svnweb.freebsd.org/changeset/base/362322 Log: MFC r361828: Ensure pci_channel_offline() actually queries the PCI register space, and not only the software cache of that register. Else pci_channel_offline() w

svn commit: r362320 - in stable/11/sys: compat/linuxkpi/common/include/linux sys

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:50:59 2020 New Revision: 362320 URL: https://svnweb.freebsd.org/changeset/base/362320 Log: MFC r361724: Implement __is_constexpr() function macro in the LinuxKPI. Bump the FreeBSD version. Sponsored by: Mellanox Technologies Modified: stable/11/sy

svn commit: r362319 - in stable/12/sys: compat/linuxkpi/common/include/linux sys

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:49:49 2020 New Revision: 362319 URL: https://svnweb.freebsd.org/changeset/base/362319 Log: MFC r361724: Implement __is_constexpr() function macro in the LinuxKPI. Bump the FreeBSD version. Sponsored by: Mellanox Technologies Modified: stable/12/sy

svn commit: r362317 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:47:30 2020 New Revision: 362317 URL: https://svnweb.freebsd.org/changeset/base/362317 Log: MFC r361723: Implement struct_size() function macro in the LinuxKPI. Sponsored by: Mellanox Technologies Modified: stable/11/sys/compat/linuxkpi/common/includ

svn commit: r362316 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:46:58 2020 New Revision: 362316 URL: https://svnweb.freebsd.org/changeset/base/362316 Log: MFC r361723: Implement struct_size() function macro in the LinuxKPI. Sponsored by: Mellanox Technologies Modified: stable/12/sys/compat/linuxkpi/common/includ

svn commit: r362315 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:46:05 2020 New Revision: 362315 URL: https://svnweb.freebsd.org/changeset/base/362315 Log: MFC r361722: Implement BUILD_BUG_ON_ZERO() in the LinuxKPI. Tested using gcc and clang. Sponsored by: Mellanox Technologies Modified: stable/11/sys/compat/l

svn commit: r362314 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:45:30 2020 New Revision: 362314 URL: https://svnweb.freebsd.org/changeset/base/362314 Log: MFC r361722: Implement BUILD_BUG_ON_ZERO() in the LinuxKPI. Tested using gcc and clang. Sponsored by: Mellanox Technologies Modified: stable/12/sys/compat/l

svn commit: r362313 - stable/10/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:41:51 2020 New Revision: 362313 URL: https://svnweb.freebsd.org/changeset/base/362313 Log: MFC r362045: Make sure packets generated by raw IP code is let through by mlx5en(4). Allow the TCP header to reside in the mbuf following the IP header. Else s

svn commit: r362312 - stable/11/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:40:16 2020 New Revision: 362312 URL: https://svnweb.freebsd.org/changeset/base/362312 Log: MFC r362045: Make sure packets generated by raw IP code is let through by mlx5en(4). Allow the TCP header to reside in the mbuf following the IP header. Else s

svn commit: r362311 - stable/12/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:38:02 2020 New Revision: 362311 URL: https://svnweb.freebsd.org/changeset/base/362311 Log: MFC r362045: Make sure packets generated by raw IP code is let through by mlx5en(4). Allow the TCP header to reside in the mbuf following the IP header. Else s

svn commit: r362310 - stable/10/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:31:21 2020 New Revision: 362310 URL: https://svnweb.freebsd.org/changeset/base/362310 Log: MFC r362044: Extend use of unlikely() in the fast path, in mlx5en(4). Typically the TCP/IP headers fit within the first mbuf and should not trigger any of the

svn commit: r362309 - stable/11/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:20:16 2020 New Revision: 362309 URL: https://svnweb.freebsd.org/changeset/base/362309 Log: MFC r362044: Extend use of unlikely() in the fast path, in mlx5en(4). Typically the TCP/IP headers fit within the first mbuf and should not trigger any of the

svn commit: r362308 - stable/12/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:19:37 2020 New Revision: 362308 URL: https://svnweb.freebsd.org/changeset/base/362308 Log: MFC r362044: Extend use of unlikely() in the fast path, in mlx5en(4). Typically the TCP/IP headers fit within the first mbuf and should not trigger any of the

svn commit: r362307 - stable/10/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:17:36 2020 New Revision: 362307 URL: https://svnweb.freebsd.org/changeset/base/362307 Log: MFC r362043: Use const keyword when parsing the TCP/IP header in the fast path in mlx5en(4). When parsing the TCP/IP header in the fast path, make it clear by u

svn commit: r362306 - stable/11/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:12:17 2020 New Revision: 362306 URL: https://svnweb.freebsd.org/changeset/base/362306 Log: MFC r362043: Use const keyword when parsing the TCP/IP header in the fast path in mlx5en(4). When parsing the TCP/IP header in the fast path, make it clear by u

svn commit: r362305 - stable/12/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:08:41 2020 New Revision: 362305 URL: https://svnweb.freebsd.org/changeset/base/362305 Log: MFC r362043: Use const keyword when parsing the TCP/IP header in the fast path in mlx5en(4). When parsing the TCP/IP header in the fast path, make it clear by u

svn commit: r362272 - head/sys/dev/mlx5/mlx5_en

2020-06-17 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 17 11:14:54 2020 New Revision: 362272 URL: https://svnweb.freebsd.org/changeset/base/362272 Log: Fix HW TLS offload regression issue after r359919, in mlx5en(4). Changes in the mbuf layout regarding HW TLS, resulted in wrong detection of starting mbuf. Use a

svn commit: r362271 - head/sys/dev/mlx4/mlx4_en

2020-06-17 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 17 11:12:10 2020 New Revision: 362271 URL: https://svnweb.freebsd.org/changeset/base/362271 Log: Allow multicast packets to be received in promiscious mode, in mlx4en(4). Make sure we disable the multicast filter in promiscious mode aswell as when the all mu

svn commit: r362168 - stable/10/sys/dev/usb/net

2020-06-13 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 14 05:33:25 2020 New Revision: 362168 URL: https://svnweb.freebsd.org/changeset/base/362168 Log: MFC r362056: Add missing range checks when receiving USB ethernet packets. Found by: Ilja Van Sprundel, IOActive Sponsored by: Mellanox Technologies Modif

svn commit: r362167 - stable/11/sys/dev/usb/net

2020-06-13 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 14 05:27:37 2020 New Revision: 362167 URL: https://svnweb.freebsd.org/changeset/base/362167 Log: MFC r362056: Add missing range checks when receiving USB ethernet packets. Found by: Ilja Van Sprundel, IOActive Sponsored by: Mellanox Technologies Modif

svn commit: r362166 - stable/12/sys/dev/usb/net

2020-06-13 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 14 05:25:06 2020 New Revision: 362166 URL: https://svnweb.freebsd.org/changeset/base/362166 Log: MFC r362056: Add missing range checks when receiving USB ethernet packets. Found by: Ilja Van Sprundel, IOActive Sponsored by: Mellanox Technologies Modif

Re: svn commit: r362110 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Hans Petter Selasky
On 2020-06-12 19:51, Hans Petter Selasky wrote: On 2020-06-12 19:48, Doug Moore wrote: Author: dougm Date: Fri Jun 12 17:48:12 2020 New Revision: 362110 URL: https://svnweb.freebsd.org/changeset/base/362110 Log:    Revert r362108, as it breaks compilation. Modified:    head/sys/compat

Re: svn commit: r362110 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Hans Petter Selasky
On 2020-06-12 19:48, Doug Moore wrote: Author: dougm Date: Fri Jun 12 17:48:12 2020 New Revision: 362110 URL: https://svnweb.freebsd.org/changeset/base/362110 Log: Revert r362108, as it breaks compilation. Modified: head/sys/compat/linuxkpi/common/include/linux/rbtree.h Modified: head/sy

svn commit: r362056 - head/sys/dev/usb/net

2020-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 11 14:31:51 2020 New Revision: 362056 URL: https://svnweb.freebsd.org/changeset/base/362056 Log: Add missing range checks when receiving USB ethernet packets. Found by: Ilja Van Sprundel, IOActive MFC after:3 days Sponsored by: Mellanox Technologie

svn commit: r362045 - head/sys/dev/mlx5/mlx5_en

2020-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 11 09:41:54 2020 New Revision: 362045 URL: https://svnweb.freebsd.org/changeset/base/362045 Log: Make sure packets generated by raw IP code is let through by mlx5en(4). Allow the TCP header to reside in the mbuf following the IP header. Else such packets wil

svn commit: r362044 - head/sys/dev/mlx5/mlx5_en

2020-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 11 09:38:51 2020 New Revision: 362044 URL: https://svnweb.freebsd.org/changeset/base/362044 Log: Extend use of unlikely() in the fast path, in mlx5en(4). Typically the TCP/IP headers fit within the first mbuf and should not trigger any of the error cases. Us

svn commit: r362043 - head/sys/dev/mlx5/mlx5_en

2020-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 11 09:36:37 2020 New Revision: 362043 URL: https://svnweb.freebsd.org/changeset/base/362043 Log: Use const keyword when parsing the TCP/IP header in the fast path in mlx5en(4). When parsing the TCP/IP header in the fast path, make it clear by using the cons

svn commit: r361989 - stable/9/sys/dev/usb

2020-06-09 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jun 9 22:15:45 2020 New Revision: 361989 URL: https://svnweb.freebsd.org/changeset/base/361989 Log: Adapt merge of r361581 to 9-stable to unbreak kernel compilation. This is a direct commit. Sponsored by: Mellanox Technologies Modified: stable/9/sys/dev/u

svn commit: r361924 - stable/11/sys/compat/linuxkpi/common/include/linux

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:39:16 2020 New Revision: 361924 URL: https://svnweb.freebsd.org/changeset/base/361924 Log: MFC r361110: Implement synchronize_srcu_expedited() in the LinuxKPI. Differential Revision:https://reviews.freebsd.org/D24798 Sponsored by: Mellanox Te

svn commit: r361925 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:39:48 2020 New Revision: 361925 URL: https://svnweb.freebsd.org/changeset/base/361925 Log: MFC r361110: Implement synchronize_srcu_expedited() in the LinuxKPI. Differential Revision:https://reviews.freebsd.org/D24798 Sponsored by: Mellanox Te

svn commit: r361923 - in stable/12/sys/dev/mlx5: . mlx5_core

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:37:20 2020 New Revision: 361923 URL: https://svnweb.freebsd.org/changeset/base/361923 Log: MFC r361498: Sync with Linux packet pacing enhancements in mlx5en(4). Linux commit: 05d3ac978ed25b753bfe34fe76c50c31ee506a82 Sponsored by: Mellanox Techno

svn commit: r361922 - in stable/9: lib/libusbhid sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:35:32 2020 New Revision: 361922 URL: https://svnweb.freebsd.org/changeset/base/361922 Log: MFC r361827: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 suc

svn commit: r361921 - in stable/10: lib/libusbhid sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:34:16 2020 New Revision: 361921 URL: https://svnweb.freebsd.org/changeset/base/361921 Log: MFC r361827: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 suc

svn commit: r361919 - in stable/11: lib/libusbhid sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:33:37 2020 New Revision: 361919 URL: https://svnweb.freebsd.org/changeset/base/361919 Log: MFC r361827: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 suc

svn commit: r361918 - in stable/12: lib/libusbhid sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:32:57 2020 New Revision: 361918 URL: https://svnweb.freebsd.org/changeset/base/361918 Log: MFC r361827: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 suc

svn commit: r361916 - stable/10/sys/netgraph/bluetooth/drivers/ubt

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:31:14 2020 New Revision: 361916 URL: https://svnweb.freebsd.org/changeset/base/361916 Log: MFC r361582: Fix check for wMaxPacketSize in USB bluetooth driver, in case device is not FULL speed. Sponsored by: Mellanox Technologies Modified: stable/10

svn commit: r361917 - stable/9/sys/netgraph/bluetooth/drivers/ubt

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:31:52 2020 New Revision: 361917 URL: https://svnweb.freebsd.org/changeset/base/361917 Log: MFC r361582: Fix check for wMaxPacketSize in USB bluetooth driver, in case device is not FULL speed. Sponsored by: Mellanox Technologies Modified: stable/9/

svn commit: r361914 - stable/12/sys/netgraph/bluetooth/drivers/ubt

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:30:08 2020 New Revision: 361914 URL: https://svnweb.freebsd.org/changeset/base/361914 Log: MFC r361582: Fix check for wMaxPacketSize in USB bluetooth driver, in case device is not FULL speed. Sponsored by: Mellanox Technologies Modified: stable/12

svn commit: r361915 - stable/11/sys/netgraph/bluetooth/drivers/ubt

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:30:43 2020 New Revision: 361915 URL: https://svnweb.freebsd.org/changeset/base/361915 Log: MFC r361582: Fix check for wMaxPacketSize in USB bluetooth driver, in case device is not FULL speed. Sponsored by: Mellanox Technologies Modified: stable/11

svn commit: r361913 - stable/9/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:29:08 2020 New Revision: 361913 URL: https://svnweb.freebsd.org/changeset/base/361913 Log: MFC r361581: Implement helper function, usbd_get_max_frame_length(), which allows kernel device drivers to correctly predict the default USB transfer frame length.

svn commit: r361912 - stable/10/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:28:26 2020 New Revision: 361912 URL: https://svnweb.freebsd.org/changeset/base/361912 Log: MFC r361581: Implement helper function, usbd_get_max_frame_length(), which allows kernel device drivers to correctly predict the default USB transfer frame length.

svn commit: r361911 - stable/11/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:27:48 2020 New Revision: 361911 URL: https://svnweb.freebsd.org/changeset/base/361911 Log: MFC r361581: Implement helper function, usbd_get_max_frame_length(), which allows kernel device drivers to correctly predict the default USB transfer frame length.

svn commit: r361910 - stable/12/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:26:46 2020 New Revision: 361910 URL: https://svnweb.freebsd.org/changeset/base/361910 Log: MFC r361581: Implement helper function, usbd_get_max_frame_length(), which allows kernel device drivers to correctly predict the default USB transfer frame length.

svn commit: r361909 - stable/9/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:25:40 2020 New Revision: 361909 URL: https://svnweb.freebsd.org/changeset/base/361909 Log: MFC r361577: Don't allow USB device drivers to parent own interface. It will prevent proper USB device detach. Sponsored by: Mellanox Technologies Modified:

svn commit: r361907 - stable/11/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:24:28 2020 New Revision: 361907 URL: https://svnweb.freebsd.org/changeset/base/361907 Log: MFC r361577: Don't allow USB device drivers to parent own interface. It will prevent proper USB device detach. Sponsored by: Mellanox Technologies Modified:

svn commit: r361908 - stable/10/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:25:01 2020 New Revision: 361908 URL: https://svnweb.freebsd.org/changeset/base/361908 Log: MFC r361577: Don't allow USB device drivers to parent own interface. It will prevent proper USB device detach. Sponsored by: Mellanox Technologies Modified:

svn commit: r361906 - stable/12/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:23:52 2020 New Revision: 361906 URL: https://svnweb.freebsd.org/changeset/base/361906 Log: MFC r361577: Don't allow USB device drivers to parent own interface. It will prevent proper USB device detach. Sponsored by: Mellanox Technologies Modified:

svn commit: r361828 - head/sys/compat/linuxkpi/common/include/linux

2020-06-05 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 5 08:12:08 2020 New Revision: 361828 URL: https://svnweb.freebsd.org/changeset/base/361828 Log: Ensure pci_channel_offline() actually queries the PCI register space, and not only the software cache of that register. Else pci_channel_offline() won't detect tha

svn commit: r361827 - in head: lib/libusbhid sys/dev/usb

2020-06-05 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 5 07:57:16 2020 New Revision: 361827 URL: https://svnweb.freebsd.org/changeset/base/361827 Log: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 such pop levels.

Re: svn commit: r361723 - head/sys/compat/linuxkpi/common/include/linux

2020-06-02 Thread Hans Petter Selasky
On 2020-06-02 14:33, Emmanuel Vadot wrote: On Tue, 2 Jun 2020 14:23:27 +0200 Hans Petter Selasky wrote: On 2020-06-02 14:01, Hans Petter Selasky wrote: Hi, I'll compile test DRM and add the missing is const expression macro and bump the FreeBSD version. Sorry for the breakage.

Re: svn commit: r361723 - head/sys/compat/linuxkpi/common/include/linux

2020-06-02 Thread Hans Petter Selasky
On 2020-06-02 14:01, Hans Petter Selasky wrote: Hi, I'll compile test DRM and add the missing is const expression macro and bump the FreeBSD version. Sorry for the breakage. --HPS Bjoern, Small things like this are usually fine. It is important to not have too many local patches,

svn commit: r361724 - in head/sys: compat/linuxkpi/common/include/linux sys

2020-06-02 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jun 2 12:23:04 2020 New Revision: 361724 URL: https://svnweb.freebsd.org/changeset/base/361724 Log: Implement __is_constexpr() function macro in the LinuxKPI. Bump the FreeBSD version. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head

Re: svn commit: r361723 - head/sys/compat/linuxkpi/common/include/linux

2020-06-02 Thread Hans Petter Selasky
Hi, I'll compile test DRM and add the missing is const expression macro and bump the FreeBSD version. Sorry for the breakage. --HPS ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send

svn commit: r361723 - head/sys/compat/linuxkpi/common/include/linux

2020-06-02 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jun 2 10:19:45 2020 New Revision: 361723 URL: https://svnweb.freebsd.org/changeset/base/361723 Log: Implement struct_size() function macro in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/inc

svn commit: r361722 - head/sys/compat/linuxkpi/common/include/linux

2020-06-02 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jun 2 09:45:43 2020 New Revision: 361722 URL: https://svnweb.freebsd.org/changeset/base/361722 Log: Implement BUILD_BUG_ON_ZERO() in the LinuxKPI. Tested using gcc and clang. MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/compa

Re: svn commit: r361575 - head/sys/fs/nfsclient

2020-05-28 Thread Hans Petter Selasky
On 2020-05-28 09:35, Alexander V. Chernikov wrote: Author: melifaro Date: Thu May 28 07:35:07 2020 New Revision: 361575 URL: https://svnweb.freebsd.org/changeset/base/361575 Log: Make NFS address selection use fib4_lookup(). fib4_lookup_nh_ represents pre-epoch generation of fib api,

svn commit: r361582 - head/sys/netgraph/bluetooth/drivers/ubt

2020-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 28 08:41:18 2020 New Revision: 361582 URL: https://svnweb.freebsd.org/changeset/base/361582 Log: Fix check for wMaxPacketSize in USB bluetooth driver, in case device is not FULL speed. MFC after:3 days Sponsored by: Mellanox Technologies Modified: h

svn commit: r361581 - head/sys/dev/usb

2020-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Thu May 28 08:38:25 2020 New Revision: 361581 URL: https://svnweb.freebsd.org/changeset/base/361581 Log: Implement helper function, usbd_get_max_frame_length(), which allows kernel device drivers to correctly predict the default USB transfer frame length. MFC after:

<    1   2   3   4   5   6   7   8   9   10   >