Message ID | f391ed9d2c8fc80a292a289dac2a69cb33b96b49.1637339774.git.pabeni@redhat.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | BPF |
Headers | show |
Series | bpf: do not WARN in bpf_warn_invalid_xdp_action() | expand |
diff --git a/net/core/filter.c b/net/core/filter.c index e471c9b09670..3ba584bb23f8 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -8183,9 +8183,9 @@ void bpf_warn_invalid_xdp_action(u32 act) { const u32 act_max = XDP_REDIRECT; - WARN_ONCE(1, "%s XDP return value %u, expect packet loss!\n", - act > act_max ? "Illegal" : "Driver unsupported", - act); + pr_warn_once("%s XDP return value %u, expect packet loss!\n", + act > act_max ? "Illegal" : "Driver unsupported", + act); } EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_action);