git: c6e0defd489f - stable/14 - gve: Relax a static assertion

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 30 Jun 2025 14:21:34 UTC
The branch stable/14 has been updated by markj:

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

commit c6e0defd489fb139e753435ccb7ecb722e9ae499
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-06-14 12:17:49 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-06-30 14:19:31 +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")
    
    (cherry picked from commit 3b4bc5d70e1c2066fcb6e8535941258c88999fa2)
---
 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");