Re: [net-next PATCH] bpf: devmap: remove unnecessary value size check

2017-08-16 Thread David Miller
From: John Fastabend Date: Tue, 15 Aug 2017 23:35:12 -0700 > In the devmap alloc map logic we check to ensure that the sizeof the > values are not greater than KMALLOC_MAX_SIZE. But, in the dev map case > we ensure the value size is 4bytes earlier in the function because all > values should be ne

Re: [net-next PATCH] bpf: devmap: remove unnecessary value size check

2017-08-16 Thread Daniel Borkmann
On 08/16/2017 08:35 AM, John Fastabend wrote: In the devmap alloc map logic we check to ensure that the sizeof the values are not greater than KMALLOC_MAX_SIZE. But, in the dev map case we ensure the value size is 4bytes earlier in the function because all values should be netdev ifindex values.