Page MenuHomeFreeBSD

IfAPI: Add needed APIs for mbuf support
ClosedPublic

Authored by jhibbits on Feb 1 2023, 3:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 12:22 AM
Unknown Object (File)
Sat, Oct 19, 5:23 PM
Unknown Object (File)
Oct 7 2024, 2:59 AM
Unknown Object (File)
Sep 29 2024, 8:40 PM
Unknown Object (File)
Sep 27 2024, 7:23 AM
Unknown Object (File)
Sep 25 2024, 6:03 AM
Unknown Object (File)
Sep 24 2024, 1:08 PM
Unknown Object (File)
Sep 24 2024, 1:08 PM
Subscribers

Details

Summary

Add 2 new APIs for supporting recent mbuf changes:

  • 36e0a362ac added the m_snd_tag_alloc() wrapper around if_snd_tag_alloc(). Push this down to the ifnet level.
  • 4d7a1361ef adds the m_rcvif_serialize()/m_rcvif_restore() KPIs to serialize and restore an ifnet pointer. Add the necessary wrapper to get the index generation for this.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/kern_mbuf.c
1589

Not sure if it's better to just flat remove m_snd_tag_alloc() in this case. Thoughts?

jhb added inline comments.
sys/kern/kern_mbuf.c
1589

It might very well be. I would perhaps do that as a separate followup though after this commit.

This revision is now accepted and ready to land.Feb 3 2023, 5:09 PM
This revision was automatically updated to reflect the committed changes.