Bug #9647
closedhn0: driver does not support altq
Added by Greg M about 5 years ago. Updated about 4 years ago.
100%
Description
As subject says, hn0 on 2.5.0 does not support ALTQ.
You get error after traffic shaper wizard starts to reload rules.
Output of: sysctl -a | grep use_if_start
Is: hw.hn.use_if_start: 0
Updated by Jim Pingle about 5 years ago
- Category set to Traffic Shaper (ALTQ)
See previous issue #8954 where this was fixed for 2.4.4
Updated by Greg M over 4 years ago
Hi,
are there any plans to correct this behaviour?
Is this possibly resolved in next freebsd release?
Thanks!
Updated by Greg M over 4 years ago
https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_5/sys/dev/hyperv/netvsc/if_hn.c#L587
Change needed from:
hn_xpnt_vf = 1;
to
hn_xpnt_vf = 0;
Updated by Greg M over 4 years ago
Hello.
Can someone please take a look at this one?
It seems trivial to fix or am I wrong?
Updated by Viktor Gurov about 4 years ago
Updated by Jim Pingle about 4 years ago
- Status changed from New to Pull Request Review
Updated by Renato Botelho about 4 years ago
- Assignee set to Luiz Souza
- Target version set to 2.5.0
Luiz, can you check this one please?
Updated by Luiz Souza about 4 years ago
- Status changed from Pull Request Review to Resolved
- % Done changed from 0 to 100
Committed.
Updated by Greg M about 4 years ago
So I tried with: pfSense-CE-2.5.0-DEVELOPMENT-amd64-20200618-1024
Still same message about ALTQ support. Is this change baked into version I`ve tested?
Thanks!
Updated by Jim Pingle about 4 years ago
- Status changed from Resolved to New
It should be. I also tested the most recent snapshot from this morning and altq did not work there, either.
Updated by Greg M about 4 years ago
I tried with todays snapshot and have the same issue.
What can we do next?
Updated by Greg M about 4 years ago
So I did some more digging...
Added /boot/loader.conf.local with contents:
hw.hn.vf_transparent="0"
hw.hn.use_if_start="1"
And now shaper works just like on 2.4.5
Updated by Luiz Souza about 4 years ago
- Status changed from New to Feedback
Applied in changeset 2360abcc392bcca1fb7c0a9126a37d77a0e8f03d.
Updated by Greg M about 4 years ago
It works.
But did few reboots and there are MANY same settings added to loader.conf
Additional syntax error occurs, created redmine for that too.
Updated by Greg M about 4 years ago
And some more info...
This does NOT work:
kern.cam.boot_delay=10000
kern.ipc.nmbclusters="1000000"
kern.ipc.nmbjumbop="524288"
kern.ipc.nmbjumbo9="524288"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
autoboot_delay="3"
hw.usb.no_pf="1"
vm.pmap.pti="0"
net.pf.request_maxcount="400000"
hw.hn.vf_transparent=0
hw.hn.use_if_start=1
But this DOES work:
kern.cam.boot_delay=10000
kern.ipc.nmbclusters="1000000"
kern.ipc.nmbjumbop="524288"
kern.ipc.nmbjumbo9="524288"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
hw.hn.vf_transparent=0
hw.hn.use_if_start=1
autoboot_delay="3"
hw.usb.no_pf="1"
vm.pmap.pti="0"
net.pf.request_maxcount="400000"
So order matters I guess.
Updated by Greg M about 4 years ago
After 2 reboots file looks like this:
kern.cam.boot_delay=10000
kern.ipc.nmbclusters="1000000"
kern.ipc.nmbjumbop="524288"
kern.ipc.nmbjumbo9="524288"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
hw.hn.vf_transparent=0
hw.hn.use_if_start=1
hw.hn.vf_transparent=0
hw.hn.use_if_start=1
hw.hn.vf_transparent=0
hw.hn.use_if_start=1
autoboot_delay="3"
hw.usb.no_pf="1"
vm.pmap.pti="0"
net.pf.request_maxcount="400000"
hw.hn.vf_transparent=0
hw.hn.use_if_start=1
I guess it keeps adding those 2 lines.
Updated by Luiz Souza about 4 years ago
Sorry for the breakage, should be fixed now.
I couldn't reproduce the order issue, please let me know if this is still an issue.
Updated by Greg M about 4 years ago
Gitsynced, deleted all entries rebooted twice and it works.
Thanks.
Updated by Luiz Souza about 4 years ago
- Status changed from Feedback to Resolved