Re: [PATCH net] bpf: make error reporting in bpf_warn_invalid_xdp_action more clear

2017-09-08 Thread David Miller
From: Daniel Borkmann Date: Sat, 9 Sep 2017 01:40:35 +0200 > Differ between illegal XDP action code and just driver > unsupported one to provide better feedback when we throw > a one-time warning here. Reason is that with 814abfabef3c > ("xdp: add bpf_redirect helper function") not all drivers >

[PATCH net] bpf: make error reporting in bpf_warn_invalid_xdp_action more clear

2017-09-08 Thread Daniel Borkmann
Differ between illegal XDP action code and just driver unsupported one to provide better feedback when we throw a one-time warning here. Reason is that with 814abfabef3c ("xdp: add bpf_redirect helper function") not all drivers support the new XDP return code yet and thus they will fall into their