diff options
author | 2024-11-07 20:55:58 +0800 | |
---|---|---|
committer | 2024-11-12 11:24:51 +0100 | |
commit | 82d9983ebeb871cb5abd27c12a950c14c68772e1 (patch) | |
tree | bb8a6aa49d56e66a4b5d6f19b75fdf3ded5f162c /net/sched/cls_api.c | |
parent | net: ip: make ip_route_input_rcu() return drop reasons (diff) | |
download | wireguard-linux-82d9983ebeb871cb5abd27c12a950c14c68772e1.tar.xz wireguard-linux-82d9983ebeb871cb5abd27c12a950c14c68772e1.zip |
net: ip: make ip_route_input_noref() return drop reasons
In this commit, we make ip_route_input_noref() return drop reasons, which
come from ip_route_input_rcu().
We need adjust the callers of ip_route_input_noref() to make sure the
return value of ip_route_input_noref() is used properly.
The errno that ip_route_input_noref() returns comes from ip_route_input
and bpf_lwt_input_reroute in the origin logic, and we make them return
-EINVAL on error instead. In the following patch, we will make
ip_route_input() returns drop reasons too.
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sched/cls_api.c')
0 files changed, 0 insertions, 0 deletions