Page MenuHomeFreeBSD

ng pppoe(4): Add the required NET_EPOCH section to the hook disconnection function.
ClosedPublic

Authored by afedorov on Feb 6 2022, 12:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 27, 8:47 AM
Unknown Object (File)
Tue, Feb 11, 11:04 AM
Unknown Object (File)
Mon, Feb 10, 11:32 AM
Unknown Object (File)
Sun, Feb 9, 8:45 AM
Unknown Object (File)
Fri, Feb 7, 1:46 AM
Unknown Object (File)
Jan 24 2025, 3:25 PM
Unknown Object (File)
Jan 13 2025, 8:56 PM
Unknown Object (File)
Dec 30 2024, 1:52 PM
Subscribers

Details

Summary

Disconnecting hooks are called outside of NET_EPOCH, but ng_pppoe_disconnect() calls NG_SEND_DATA_ONLY() which should be called in NET_EPOCH.

PR: 257067

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Feb 6 2022, 1:33 PM

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?

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?

Other places where NG_SEND_DATA_ONLY() is called:

  • pppoe_broadcast_padi() which called from ng_pppoe_rcvdata_ether() - datapath already in NET_EPOCH.
  • ng_pppoe_rcvmsg() - already set NET_EPOCH manually.
  • pppoe_start() called from ng_pppoe_rcvmsg() - already set NET_EPOCH manually.
  • pppoe_start() called from ng_pppoe_ticker(). ng_pppoe_ticker() called from ng_callout() which enter NET_EPOCH.

So, I think other places where NG_SEND_DATA_ONLY() is called, are already in NET_EPOCH.

I see, thanks.

This revision now requires changes to proceed.Feb 8 2022, 9:08 PM
This revision is now accepted and ready to land.Feb 8 2022, 9:08 PM