Skip to content

Commit

Permalink
shortcut-fe(SFE): backport NF_CONNTRACK_CHAIN_EVENTS (hanwckf#515)
Browse files Browse the repository at this point in the history
* kernel: netfilter: Introduce NF_CONNTRACK_CHAIN_EVENTS (Backport from chromiumos 3.18 (114594778f3a8a22f1c98f70aef74b778329da3f) & lede patchs)

* kernel:config add CONFIG_ NF_CONNTRACK_CHAIN_EVENTS

New symbols c7116ad
net: conntrack events, support multiple registrant
Register multiple callbacks to ct events (NF_CONNTRACK_CHAIN_EVENTS)

* shortcut-fe(SFE):enable CONFIG_NF_CONNTRACK_CHAIN_EVENTS at compile SFE

* shortcut-fe(SFE):fix

* shortcut-fe(SFE):fix

* kernel:net:revert something

* ecache:fix

Co-authored-by: Alexey <4653240-dm38@users.noreply.gitlab.com>
  • Loading branch information
CopyPasteByteArtist and Alexey authored Aug 16, 2023
1 parent c62eae8 commit 868b7a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions trunk/user/shortcut-fe/shortcut-fe/fast-classifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -1787,8 +1787,8 @@ static int __init fast_classifier_init(void)
/*
* Hook the receive path in the network stack.
*/
BUG_ON(fast_nat_recv);
RCU_INIT_POINTER(fast_nat_recv, fast_classifier_recv);
BUG_ON(athrs_fast_nat_recv);
RCU_INIT_POINTER(athrs_fast_nat_recv, fast_classifier_recv);

/*
* Hook the shortcut sync callback.
Expand Down Expand Up @@ -1846,7 +1846,7 @@ static void __exit fast_classifier_exit(void)
/*
* Unregister our receive callback.
*/
RCU_INIT_POINTER(fast_nat_recv, NULL);
RCU_INIT_POINTER(athrs_fast_nat_recv, NULL);

/*
* Wait for all callbacks to complete.
Expand Down Expand Up @@ -1889,4 +1889,3 @@ module_exit(fast_classifier_exit)

MODULE_DESCRIPTION("Shortcut Forwarding Engine - Connection Manager");
MODULE_LICENSE("Dual BSD/GPL");

0 comments on commit 868b7a1

Please sign in to comment.