Skip to content

Commit

Permalink
Merge pull request #8430 from tomastigera/tomas-bpf-fix-enable-log-err
Browse files Browse the repository at this point in the history
[BPF] log the error when ebpf seems not to be supported by kernel
  • Loading branch information
tomastigera committed Jan 23, 2024
2 parents 0aa269f + 092c35d commit 126ddce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion felix/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ configRetry:
if configParams.BPFEnabled {
// Check for BPF dataplane support before we do anything that relies on the flag being set one way or another.
if err := dp.SupportsBPF(); err != nil {
log.Error("BPF dataplane mode enabled but not supported by the kernel. Disabling BPF mode.")
log.WithError(err).Error("BPF dataplane mode enabled but not supported by the kernel. Disabling BPF mode.")
_, err := configParams.OverrideParam("BPFEnabled", "false")
if err != nil {
log.WithError(err).Panic("Bug: failed to override config parameter")
Expand Down

0 comments on commit 126ddce

Please sign in to comment.