Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Use DMA framework to create DMAble buffers #722
base: main
Are you sure you want to change the base?
Use DMA framework to create DMAble buffers #722
Changes from 13 commits
57c366b
2f4ad18
a9e19ee
9882a22
05d1751
9806bf8
b4595af
a6c318a
3ed8345
7aad388
ebececf
7057efc
5e2b704
4ef4853
816e8b8
4c9942a
cf84f1f
517d07a
ee505b7
cf4dfb4
7b77c2f
af7659b
941ca53
1c74c1e
a21480d
cdf1bc2
77e5a2e
64f36ab
a33cad3
6c2ba37
1aa929a
dfd7c16
06432c3
1b9ba4e
c9b59a1
5654b8c
0cb7681
a4c8d79
81e97dd
2ede4dd
88225af
e98eb3c
22362c3
b812e33
495daf6
8871a24
7c558f8
a0062c9
e8fdac1
28bcb12
b448156
332b0d6
db03555
48de600
c9643e9
1c008be
df479c0
fbe274f
71973e2
0b26c3b
8e4e9dd
772a058
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like page pool, implementing
Clone
on this type seems odd to me. You want there to be only a single manager, and make it painfully obvious to the user that you do not want to clone this type because it has special internal state that it is responsible for managing. This means that you may need to pass usage of it by ref, or by ArcThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want to clone DmaClients, as it seems reasonable to me that there is at most one client per pci_id. I'd rather here we make the Arc external, ie don't implement clone, but instead return an
Arc<DmaClient>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't make sense here - why is this not a method on DmaClient itself?