diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-09-04 13:18:23 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-09-10 13:22:47 +0200 |
commit | 1396f2b1447e8c8388115b33128da60be41792e8 (patch) | |
tree | 6f9b3cdd053e239186bc63e0dda8b3d02f25016c | |
parent | d23d2ef3d0a72dd741b3cec330e53dd1a765b665 (diff) | |
download | qemu-1396f2b1447e8c8388115b33128da60be41792e8.zip qemu-1396f2b1447e8c8388115b33128da60be41792e8.tar.gz qemu-1396f2b1447e8c8388115b33128da60be41792e8.tar.bz2 |
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>
-rw-r--r-- | ebpf/ebpf_rss.c | 2 | ||||
-rw-r--r-- | qapi/ebpf.json | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/ebpf/ebpf_rss.c b/ebpf/ebpf_rss.c index 87f0714..dcaa80f 100644 --- a/ebpf/ebpf_rss.c +++ b/ebpf/ebpf_rss.c @@ -271,4 +271,4 @@ void ebpf_rss_unload(struct EBPFRSSContext *ctx) 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) diff --git a/qapi/ebpf.json b/qapi/ebpf.json index 42df548..db19ae8 100644 --- a/qapi/ebpf.json +++ b/qapi/ebpf.json @@ -42,7 +42,6 @@ # Since: 9.0 ## { 'enum': 'EbpfProgramID', - 'prefix': 'EBPF_PROGRAMID', # TODO drop 'if': 'CONFIG_EBPF', 'data': [ { 'name': 'rss' } ] } |