Skip to content

Dev #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 31, 2024
Merged

Dev #823

merged 4 commits into from
May 31, 2024

Conversation

wenchengji159357
Copy link
Contributor

@wenchengji159357 wenchengji159357 commented May 23, 2024

After making these modifications, f-stack will support QAT accelerator cards.

When kqueue A is added as an event to kqueue B, kqueue B cannot detect when a new event is added to kqueue A.
FreeBSD supports this feature by starting a thread in kernel mode to handle it, ultimately using the kqueue_task function to notify the kqueue.
When a new event is added to kqueue A, the kqueue_wakeup function is triggered.
Therefore, by modifying the implementation to trigger events in a manner similar to kqueue_task, this functionality can be achieved.

For f-stack to support QAT accelerator cards, the following steps are necessary:

  1. Apply the changes from Master intel/QAT_Engine#316.
  2. Merge the f-stack adaptations into asynch_mode_nginx.
  3. Follow QAT's usage instructions to use the QAT accelerator cards.

By doing so, f-stack will be able to support QAT accelerator cards.

@jfb8856606
Copy link
Contributor

I will test it later.

@@ -2221,7 +2221,11 @@ kqueue_wakeup(struct kqueue *kq)
kq->kq_state &= ~KQ_SEL;
}
if (!knlist_empty(&kq->kq_sel.si_note))
#ifndef FSTACK
kqueue_schedtask(kq);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gcc build error :kern_event.c:1676:1: error: ‘kqueue_schedtask’ defined but not used
May be you also use #ifndef FSTACK and '#endif' to protect the definition of kqueue_schedtask in line 1676.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

modify gcc build error
@jfb8856606 jfb8856606 merged commit 66e6dbb into F-Stack:dev May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants