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)
Wed, Oct 16, 2:11 PM
Unknown Object (File)
Oct 7 2024, 12:59 AM
Unknown Object (File)
Sep 28 2024, 7:24 AM
Unknown Object (File)
Sep 27 2024, 8:45 PM
Unknown Object (File)
Sep 20 2024, 9:22 PM
Unknown Object (File)
Sep 18 2024, 1:29 AM
Unknown Object (File)
Aug 19 2024, 7:32 PM
Unknown Object (File)
Jul 10 2024, 3:38 AM
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