In D48646#1109461, @zlei wrote:In D48646#1109329, @afedorov wrote:It won't work becaus, if_vxlan(4) exports various statistics and tables via sysctl. But for VNET we can only change the values, and not the tree itself.
The problem is somewhat broader.
Yeah, this is another known issue, I forgot to mention this. I'm proposing to have a global unique number for those dynamically added sysctl nodes, but that apparently may leak sensitive info , such as forwarding table entries. Or we should apply restrictions for that, but I have no idea how to restrict that.
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed Search
May 28 2025
May 28 2025
May 7 2025
May 7 2025
afedorov added reviewers for D50241: Teach ngctl to attach and run itself in a jail.: Jails, jamie, kevans.
Feb 20 2025
Feb 20 2025
Jan 24 2025
Jan 24 2025
Jan 23 2025
Jan 23 2025
It won't work becaus, if_vxlan(4) exports various statistics and tables via sysctl. But for VNET we can only change the values, and not the tree itself.
Jul 1 2024
Jul 1 2024
afedorov added a comment to D45195: if_vxlan(4): Exclude ETHER_CRC_LEN while calculating VXLAN_MAX_MTU.
As the author of the original patch about increasing MTU, I consider this change to be correct.
Jun 2 2024
Jun 2 2024
afedorov added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
May 16 2024
May 16 2024
Apr 23 2024
Apr 23 2024
afedorov added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 22 2024
Apr 22 2024
afedorov added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 21 2024
Apr 21 2024
afedorov added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
Apr 4 2024
Apr 4 2024
Apr 3 2024
Apr 3 2024
afedorov added inline comments to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
afedorov added a comment to D44615: Allow ng_bridge to automatically assign [up]link numbers for connect messages..
My main objection is that backward compatibility is broken. We can no longer have uplink[N] and link[N] at the same time. This may break existing software.
Feb 8 2024
Feb 8 2024
afedorov added inline comments to D43776: Disambiguate KASSERTs in the m_apply() mbuf checking code and provide more context.
Feb 5 2024
Feb 5 2024
Dec 20 2023
Dec 20 2023
afedorov closed D39369: ng_eiface(4): Set IFF_KNOWSEPOCH flag to avoid enter net epoch recursively..
Abandon due to D39510
Nov 24 2023
Nov 24 2023
I don't like this approach. We should stop using IF_QUEUE altogether.
Nov 21 2023
Nov 21 2023
Nov 17 2023
Nov 17 2023
Aug 14 2023
Aug 14 2023
Jun 20 2023
Jun 20 2023
@elenamihailescu22_gmail.com , I really respect your work and what you have done.
@corvink , I think this commit is too early. Because we haven't finished supporting snapshots, but this commit already fixes the user interface for live migration, which is not finished at all.
I think we should bring support for snapshots first. And enable BHYVE_SNAPSHOT by default.
Apr 25 2023
Apr 25 2023
In D39805#906206, @markj wrote:Would anyone be willing to test this on an AMD system?
Apr 16 2023
Apr 16 2023
up
Mar 31 2023
Mar 31 2023
afedorov added a comment to D39369: ng_eiface(4): Set IFF_KNOWSEPOCH flag to avoid enter net epoch recursively..
In D39369#896103, @zlei wrote:Generally looks good to me.
The patch slightly increases RX PPS: ~ 100 Kpps.
From to ?
afedorov updated the test plan for D39369: ng_eiface(4): Set IFF_KNOWSEPOCH flag to avoid enter net epoch recursively..
Mar 4 2023
Mar 4 2023
@kp , just out of curiosity. How many packets per second did you get in your test after this patch?
Sep 13 2022
Sep 13 2022
Sep 9 2022
Sep 9 2022
afedorov added a comment to D36496: netgraph(4): Don't process NGQF_MESG items in NET_EPOCH context..
Sep 8 2022
Sep 8 2022
afedorov requested review of D36496: netgraph(4): Don't process NGQF_MESG items in NET_EPOCH context..
Sep 6 2022
Sep 6 2022
Thanks. I will submit this patch in a separate review where we can discuss the details.
My main objection is that it is bad to extend 'struct protosw' for only one consumer ( ng_kocket(4) ).
In D36451#828133, @mjg wrote:can i get some feedback here? the netgraph panic is partially blocking other work
Jul 21 2022
Jul 21 2022
@rew, do you have any plans to continue this work? If not, I'd like to take over.
Jun 23 2022
Jun 23 2022
afedorov added a reviewer for D35575: bhyve: Support Hyper-V (base) and hyperv clock: howard0su_gmail.com.
Feb 23 2022
Feb 23 2022
Feb 21 2022
Feb 21 2022
Looks good to me.
Feb 19 2022
Feb 19 2022
I'm concerned about two things:
Feb 17 2022
Feb 17 2022
I have this problem in STABLE-13 with disk image located on NFS share.
Feb 16 2022
Feb 16 2022
Feb 15 2022
Feb 15 2022
afedorov added a comment to D34260: md(4): Add dummy support of the BIO_FLUSH command for malloc and swap backend..
@vmaffione , do you have any objections?
Feb 14 2022
Feb 14 2022
afedorov added a comment to D34260: md(4): Add dummy support of the BIO_FLUSH command for malloc and swap backend..
In D34260#775362, @markj wrote:BTW, mdstart_vnode() does not set bio_resid after handling a BIO_FLUSH. I suspect it does not matter in practice, since by convention BIO_FLUSH commands have bio_length == 0.
Feb 13 2022
Feb 13 2022
Feb 9 2022
Feb 9 2022
Feb 8 2022
Feb 8 2022
afedorov added a comment to D34185: ng pppoe(4): Add the required NET_EPOCH section to the hook disconnection function. .
In D34185#773670, @vmaffione wrote:Question: there are three more locations in that source file where NG_SEND_DATA_ONLY() is called and it is not apparent that we are inside NET_EPOCH.
Should we enter NET_EPOCH also there, or we are already in?
Feb 7 2022
Feb 7 2022
afedorov added a reviewer for D34185: ng pppoe(4): Add the required NET_EPOCH section to the hook disconnection function. : jhb.
Feb 6 2022
Feb 6 2022
Feb 5 2022
Feb 5 2022
Dec 22 2021
Dec 22 2021
afedorov added a reviewer for D33448: vmm: vlapic resume can eat 100% CPU by vlapic_callout_handler: kib.
Dec 16 2021
Dec 16 2021
In D26268#756453, @markj wrote:Should this be committed?
Dec 15 2021
Dec 15 2021
afedorov added reviewers for D33448: vmm: vlapic resume can eat 100% CPU by vlapic_callout_handler: jhb, markj, elenamihailescu22_gmail.com.
Nov 9 2021
Nov 9 2021
I don't understand what the alignment does in this case.
Does it fix a bug or is it an optimization?
What part of the code requires this alignment, is it the TCP/IP stack?
Because not only ng_eiface(4) can inject Ethernet packets into the network stack.
Nov 8 2021
Nov 8 2021
The polynomial 0x8005 is CRC-16-IBM or CRC-16-ANSI.
Oct 21 2021
Oct 21 2021
This is done in FreeBSD 13.
I am also against the use of generic messages.
Sep 13 2021
Sep 13 2021
Aug 12 2021
Aug 12 2021
I looked at other nodes that implement the ng_newhook_t method. They already use M_NOWAIT, so I think this patch is good.
Aug 10 2021
Aug 10 2021
afedorov added a reviewer for D31486: ng_bridge: Use M_NOWAIT when allocating memory in the newhook routine: afedorov.
afedorov added a comment to D31486: ng_bridge: Use M_NOWAIT when allocating memory in the newhook routine.
The load simply allows this bug to manifest itself. Under load, the node's queue already contains the item's, so if a message item is sent at that moment (ngtstl shutdown), it will also go to the queue and will be processed by ngthread(). Without load, the queue is mostly empty, the message item will be delivered/processed by the thread of the calling process directly: ngctl -> syscall (sandto(2)) -> ngc_send (ng_socket(4)) -> ng_eiface(4) without entering to the EPOCH section. Therefore, the bug does not manifest itself.
afedorov added a comment to D31486: ng_bridge: Use M_NOWAIT when allocating memory in the newhook routine.
JFYI, the same situation. If you call "ngctl shutdown ngeth0:" under load:
afedorov added a comment to D31486: ng_bridge: Use M_NOWAIT when allocating memory in the newhook routine.
I think the problem is somewhat broader. Any message item can be added to the node's queue under load or if the queue is blocked. This message item will be processed by ngthread() in the EPOCH section. There are many places in the code of the nodes that perform actions prohibited in the EPOCH section.
Jul 22 2021
Jul 22 2021
afedorov added a comment to D31263: bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf.
Overall, this patch looks good to me.
Jul 7 2021
Jul 7 2021
Jun 15 2021
Jun 15 2021
afedorov added inline comments to D30638: if_vxlan(4): Allow netmap_generic to intercept RX packets..
Jun 5 2021
Jun 5 2021
In D30638#688320, @np wrote:I know it's not directly related but the 'if' here is not needed. If you're tightening the len checks in the function then maybe clean this too?
out:
if (m != NULL) m_freem(m);
- Move ethernet packet length check to vxlan_input().
Jun 4 2021
Jun 4 2021
afedorov added inline comments to D30638: if_vxlan(4): Allow netmap_generic to intercept RX packets..