Re: [PATCH bpf-next 1/6] bpf: error handling when map_lookup_elem isn't supported

2018-10-09 Thread Song Liu
On Mon, Oct 8, 2018 at 6:06 PM Prashant Bhole wrote: > > The error value returned by map_lookup_elem doesn't differentiate > whether lookup was failed because of invalid key or lookup is not > supported. > > Lets add handling for -EOPNOTSUPP return value of map_lookup_elem() > method of map, with

[PATCH bpf-next 1/6] bpf: error handling when map_lookup_elem isn't supported

2018-10-08 Thread Prashant Bhole
The error value returned by map_lookup_elem doesn't differentiate whether lookup was failed because of invalid key or lookup is not supported. Lets add handling for -EOPNOTSUPP return value of map_lookup_elem() method of map, with expectation from map's implementation that it should return