Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netobserv-ebpf-agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
netobserv-ebpf-agent
Commits
434968e1
Unverified
Commit
434968e1
authored
10 months ago
by
Mohamed S. Mahmoud
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
NETOBSERV-1743: handle file exits error using TCx hooks and update FC (#363)
Signed-off-by:
Mohamed Mahmoud
<
mmahmoud@redhat.com
>
parent
bed25c59
Branches
Branches containing commit
Tags
v1.6.1-community
v1.6.1-crc2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/ebpf/tracer.go
+24
-4
24 additions, 4 deletions
pkg/ebpf/tracer.go
with
24 additions
and
4 deletions
pkg/ebpf/tracer.go
+
24
−
4
View file @
434968e1
...
...
@@ -230,7 +230,12 @@ func (m *FlowFetcher) AttachTCX(iface ifaces.Interface) error {
Interface
:
iface
.
Index
,
})
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to attach TCX egress: %w"
,
err
)
if
errors
.
Is
(
err
,
fs
.
ErrExist
)
{
// The interface already has a TCX egress hook
log
.
WithField
(
"iface"
,
iface
.
Name
)
.
Debug
(
"interface already has a TCX egress hook ignore"
)
}
else
{
return
fmt
.
Errorf
(
"failed to attach TCX egress: %w"
,
err
)
}
}
m
.
egressTCXLink
[
iface
]
=
egrLink
ilog
.
WithField
(
"interface"
,
iface
.
Name
)
.
Debug
(
"successfully attach egressTCX hook"
)
...
...
@@ -243,7 +248,12 @@ func (m *FlowFetcher) AttachTCX(iface ifaces.Interface) error {
Interface
:
iface
.
Index
,
})
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to attach TCX ingress: %w"
,
err
)
if
errors
.
Is
(
err
,
fs
.
ErrExist
)
{
// The interface already has a TCX ingress hook
log
.
WithField
(
"iface"
,
iface
.
Name
)
.
Debug
(
"interface already has a TCX ingress hook ignore"
)
}
else
{
return
fmt
.
Errorf
(
"failed to attach TCX ingress: %w"
,
err
)
}
}
m
.
ingressTCXLink
[
iface
]
=
ingLink
ilog
.
WithField
(
"interface"
,
iface
.
Name
)
.
Debug
(
"successfully attach ingressTCX hook"
)
...
...
@@ -928,7 +938,12 @@ func (p *PacketFetcher) AttachTCX(iface ifaces.Interface) error {
Interface
:
iface
.
Index
,
})
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to attach PCA TCX egress: %w"
,
err
)
if
errors
.
Is
(
err
,
fs
.
ErrExist
)
{
// The interface already has a TCX egress hook
log
.
WithField
(
"iface"
,
iface
.
Name
)
.
Debug
(
"interface already has a TCX PCA egress hook ignore"
)
}
else
{
return
fmt
.
Errorf
(
"failed to attach PCA TCX egress: %w"
,
err
)
}
}
p
.
egressTCXLink
[
iface
]
=
egrLink
ilog
.
WithField
(
"interface"
,
iface
.
Name
)
.
Debug
(
"successfully attach PCA egressTCX hook"
)
...
...
@@ -941,7 +956,12 @@ func (p *PacketFetcher) AttachTCX(iface ifaces.Interface) error {
Interface
:
iface
.
Index
,
})
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to attach PCA TCX ingress: %w"
,
err
)
if
errors
.
Is
(
err
,
fs
.
ErrExist
)
{
// The interface already has a TCX ingress hook
log
.
WithField
(
"iface"
,
iface
.
Name
)
.
Debug
(
"interface already has a TCX PCA ingress hook ignore"
)
}
else
{
return
fmt
.
Errorf
(
"failed to attach PCA TCX ingress: %w"
,
err
)
}
}
p
.
ingressTCXLink
[
iface
]
=
ingLink
ilog
.
WithField
(
"interface"
,
iface
.
Name
)
.
Debug
(
"successfully attach PCA ingressTCX hook"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment