Quellcode durchsuchen

qapi/ebpf: Drop temporary 'prefix'

Recent commit "qapi: Smarter camel_to_upper() to reduce need for
'prefix'" added a temporary 'prefix' to delay changing the generated
code.

Revert it.  This improves EbpfProgramID's generated enumeration
constant prefix from EBPF_PROGRAMID to EBPF_PROGRAM_ID.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240904111836.3273842-7-armbru@redhat.com>
Markus Armbruster vor 11 Monaten
Ursprung
Commit
1396f2b144
2 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 1
      ebpf/ebpf_rss.c
  2. 0 1
      qapi/ebpf.json

+ 1 - 1
ebpf/ebpf_rss.c

@@ -271,4 +271,4 @@ void ebpf_rss_unload(struct EBPFRSSContext *ctx)
     ctx->map_indirections_table = -1;
     ctx->map_indirections_table = -1;
 }
 }
 
 
-ebpf_binary_init(EBPF_PROGRAMID_RSS, rss_bpf__elf_bytes)
+ebpf_binary_init(EBPF_PROGRAM_ID_RSS, rss_bpf__elf_bytes)

+ 0 - 1
qapi/ebpf.json

@@ -42,7 +42,6 @@
 # Since: 9.0
 # Since: 9.0
 ##
 ##
 { 'enum': 'EbpfProgramID',
 { 'enum': 'EbpfProgramID',
-  'prefix': 'EBPF_PROGRAMID',   # TODO drop
   'if': 'CONFIG_EBPF',
   'if': 'CONFIG_EBPF',
   'data': [ { 'name': 'rss' } ] }
   'data': [ { 'name': 'rss' } ] }