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

patch the max_consumers parameter of the Falco kernel-module driver #1485

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

leodido
Copy link
Member

@leodido leodido commented Nov 13, 2020

Co-authored-by: Lorenzo Fontana [email protected]
Signed-off-by: Leonardo Di Donato [email protected]

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

Which issue(s) this PR fixes:

NONE

Special notes for your reviewer:

This bug happens when many Falco instances start because the check of how many driver consumers can work at the same time is not correct.

Does this PR introduce a user-facing change?:

fix: a bug that prevents Falco driver to be consumed by many Falco instances in some circumstances

@leodido
Copy link
Member Author

leodido commented Nov 13, 2020

/cc @fntlnz

@poiana poiana added the size/M label Nov 13, 2020
@poiana poiana requested a review from fntlnz November 13, 2020 10:24
kernel-module Falco driver

Co-authored-by: Lorenzo Fontana <[email protected]>
Signed-off-by: Leonardo Di Donato <[email protected]>
@leodido leodido force-pushed the fix/max-consumer-driver-param-patch branch from 60279c6 to 5f34784 Compare November 13, 2020 10:27
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

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

Good catch!

LGTM, just left a comment.

Comment on lines +45 to +48
- if(udig_alloc_ring_descriptors(&(handle->m_devs[0].m_bufinfo_fd),
- &handle->m_devs[0].m_bufinfo,
+ if(udig_alloc_ring_descriptors(&(handle->m_devs[0].m_bufinfo_fd),
+ &handle->m_devs[0].m_bufinfo,
Copy link
Member

Choose a reason for hiding this comment

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

I would not include those cleaning of whitespaces in the patch unless there's a reason I did not understand; otherwise, it looks good to me.

@poiana
Copy link
Contributor

poiana commented Nov 13, 2020

LGTM label has been added.

Git tree hash: 7a2672688b5a55482e903474bca0f98b19f627b9

@poiana
Copy link
Contributor

poiana commented Nov 13, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 648bb62 into master Nov 13, 2020
@poiana poiana deleted the fix/max-consumer-driver-param-patch branch November 13, 2020 14:21
@fntlnz fntlnz added this to the 0.27.0 milestone Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants