Skip to content
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

Set the kernel as an extra user of SKBs that are sent out. #171

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

keshonok
Copy link
Contributor

@keshonok keshonok commented Aug 4, 2015

This should be used in conjunction with the kernel patch. The patch makes sure
that SKBs in socket's TX path are freed with kfree_skb() and not __kfree_skb().
kfree_skb() pays attention to the number of users SKB currently has, whereas
__kfree_skb() frees SKBs unconditionally. With these two patches together SKBs
can be freed safely at any time.

This should be used in conjunction with the kernel patch. The patch makes sure
that SKBs in socket's TX path are freed with kfree_skb() and not __kfree_skb().
kfree_skb() pays attention to the number of users SKB currently has, whereas
__kfree_skb() frees SKBs unconditionally. With these two patches together SKBs
can be freed safely at any time.
keshonok added a commit that referenced this pull request Aug 4, 2015
Set the kernel as an extra user of SKBs that are sent out.
@keshonok keshonok merged commit 2636242 into master Aug 4, 2015
@keshonok keshonok deleted the ab-56-refcnt branch August 4, 2015 14:15
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.

1 participant