On Wed,  2 Dec 2026 09:18:01 -0800
Scott Mitchell <[email protected]> wrote:

> +     /* Constraints the kernel enforces in packet_set_ring() */
> +     frames_per_block = blocksize / framesize;
> +     if (blocksize % getpagesize() != 0 || blocksize > (unsigned int)INT_MAX 
> ||
> +         framesize < TPACKET2_HDRLEN || framesize % TPACKET_ALIGNMENT != 0 ||
> +         framecount % frames_per_block != 0) {
>               PMD_LOG(ERR,
> -                     "%s: invalid AF_PACKET MMAP parameters", name);
> +                     "%s: invalid AF_PACKET MMAP parameters: blocksz must be 
> a multiple of the page size up to INT_MAX, "
> +                     "framesz a multiple of %d and at least %zu, and 
> framecnt a multiple of blocksz/framesz",

That message is getting to long. I would just put in blocksize and framesize. 
And check the doc file
that the constraints are there.

Reply via email to