Re: [PATCH net-next] seg6: fool-proof the processing of SRv6 behavior attributes

From: David Ahern
Date: Wed Feb 03 2021 - 22:01:15 EST


On 2/3/21 7:27 PM, Andrea Mayer wrote:
>
> I think there is an issue here because BITS_PER_TYPE(unsigned long) is greater
> than the SEG6_LOCAL_MAX (currently = 9).
>
> I think it should be like this:
>
> BUILD_BUG_ON(SEG6_LOCAL_MAX + 1 > BITS_PER_TYPE(unsigned long))
>
> I will send a v2 with the changes discussed so far.

yes, I had that backwards.