The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3b4bc5d70e1c2066fcb6e8535941258c88999fa2

commit 3b4bc5d70e1c2066fcb6e8535941258c88999fa2
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2025-06-14 12:17:49 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2025-06-14 12:17:49 +0000

    gve: Relax a static assertion
    
    It's okay if MCLBYTES is larger than the default receive buffer size.
    
    Fixes:  71702df61262 ("gve: Add support for 4k RX Buffers when using DQO 
queue formats")
---
 sys/dev/gve/gve.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/gve/gve.h b/sys/dev/gve/gve.h
index dd432dc0eb45..64c2a0481817 100644
--- a/sys/dev/gve/gve.h
+++ b/sys/dev/gve/gve.h
@@ -85,7 +85,7 @@
 
 static MALLOC_DEFINE(M_GVE, "gve", "gve allocations");
 
-_Static_assert(MCLBYTES == GVE_DEFAULT_RX_BUFFER_SIZE,
+_Static_assert(MCLBYTES >= GVE_DEFAULT_RX_BUFFER_SIZE,
     "gve: bad MCLBYTES length");
 _Static_assert(MJUMPAGESIZE >= GVE_4K_RX_BUFFER_SIZE_DQO,
     "gve: bad MJUMPAGESIZE length");

Reply via email to