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)
Dec 23 2023, 1:27 AM
Unknown Object (File)
Dec 12 2023, 12:08 PM
Unknown Object (File)
Nov 10 2023, 3:15 AM
Unknown Object (File)
Oct 9 2023, 1:58 AM
Unknown Object (File)
Oct 5 2023, 6:02 PM
Unknown Object (File)
Aug 9 2023, 11:19 PM
Unknown Object (File)
Aug 6 2023, 9:20 PM
Unknown Object (File)
Aug 6 2023, 9:13 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.