git: d94a88d249b0 - stable/13 - netmap: fix build issue in unit test

From: Vincenzo Maffione <vmaffione_at_FreeBSD.org>
Date: Wed, 05 Apr 2023 22:23:38 UTC
The branch stable/13 has been updated by vmaffione:

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

commit d94a88d249b05436c2ab8601557ac24580fdaca2
Author:     Vincenzo Maffione <vmaffione@FreeBSD.org>
AuthorDate: 2023-04-05 22:19:13 +0000
Commit:     Vincenzo Maffione <vmaffione@FreeBSD.org>
CommitDate: 2023-04-05 22:19:13 +0000

    netmap: fix build issue in unit test
    
    This is a direct commit to fix a build issue introduced by
    b74063f03a834e9f22fb46f8e989a9df19823ff0 (cherry-picked MFC).
    The build failure is caused by the use of a netmap option
    that is available in CURRENT but not in stable/13.
    Fix it by using an option code that is available also in
    stable/13. The option value is not relevant for the test.
---
 tests/sys/netmap/ctrl-api-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/netmap/ctrl-api-test.c b/tests/sys/netmap/ctrl-api-test.c
index 67c7bfbf5315..bf85fbb76a2b 100644
--- a/tests/sys/netmap/ctrl-api-test.c
+++ b/tests/sys/netmap/ctrl-api-test.c
@@ -1004,7 +1004,7 @@ infinite_options2(struct TestContext *ctx)
 	printf("Testing infinite list of options on %s (valid options)\n", ctx->ifname_ext);
 
 	memset(&opt, 0, sizeof(opt));
-	opt.nro_reqtype = NETMAP_REQ_OPT_OFFSETS;
+	opt.nro_reqtype = NETMAP_REQ_OPT_CSB;
 	push_option(&opt, ctx);
 	opt.nro_next = (uintptr_t)&opt;
 	if (port_register_hwall(ctx) >= 0)