-
Notifications
You must be signed in to change notification settings - Fork 31
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
Filter out sockets for loopback and unknown interfaces #260
Filter out sockets for loopback and unknown interfaces #260
Conversation
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #260 +/- ##
=======================================
Coverage 33.65% 33.65%
=======================================
Files 40 40
Lines 3542 3542
=======================================
Hits 1192 1192
Misses 2281 2281
Partials 69 69
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
/ok-to-test |
New image: It will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=57ade44 make set-agent-image |
@@ -17,7 +17,10 @@ static inline int trace_pkt_drop(void *ctx, u8 state, | |||
u16 family = 0,flags = 0; | |||
|
|||
id.if_index = skb->skb_iif; | |||
|
|||
// filter out TCP sockets with unknown or loopback interface | |||
if (id.if_index == 0 || id.if_index == 1) { |
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.
is it 100% sure that if_index 0 or 1 is always loopback
or unknown ?
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.
yes those two index are reserved , I was hopping if there is api or helper but couldn't find any and saw other app doing the same check to detect lo
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msherif1234 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 |
Description
filter out noise flows when RTT and/or pkt drop is enabled for
lo
interfacehere is a sample of those waste flows we can see when enable RTT or pkt drop
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.