[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/19] qapi/ebpf: Drop temporary 'prefix'
From: |
Markus Armbruster |
Subject: |
[PATCH v2 06/19] qapi/ebpf: Drop temporary 'prefix' |
Date: |
Wed, 4 Sep 2024 13:18:23 +0200 |
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>
---
qapi/ebpf.json | 1 -
ebpf/ebpf_rss.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/qapi/ebpf.json b/qapi/ebpf.json
index 42df548777..db19ae850f 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' } ] }
diff --git a/ebpf/ebpf_rss.c b/ebpf/ebpf_rss.c
index 87f0714910..dcaa80f380 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)
--
2.46.0
- [PATCH v2 00/19] qapi: Reduce use of 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 02/19] tests/qapi-schema: Drop temporary 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 10/19] qapi/crypto: Drop unwanted 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 19/19] qapi/vfio: Rename VfioMigrationState to Qapi*, and drop prefix, Markus Armbruster, 2024/09/04
- [PATCH v2 13/19] qapi/crypto: Rename QCryptoIVGenAlgorithm to *Algo, and drop prefix, Markus Armbruster, 2024/09/04
- [PATCH v2 18/19] qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix, Markus Armbruster, 2024/09/04
- [PATCH v2 14/19] qapi/crypto: Rename QCryptoAkCipherAlgorithm to *Algo, and drop prefix, Markus Armbruster, 2024/09/04
- [PATCH v2 15/19] qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix, Markus Armbruster, 2024/09/04
- [PATCH v2 09/19] qapi/machine: Rename CpuS390* to S390Cpu*, and drop 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 06/19] qapi/ebpf: Drop temporary 'prefix',
Markus Armbruster <=
- [PATCH v2 05/19] qapi/crypto: Drop temporary 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 03/19] qapi/block-core: Drop temporary 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 17/19] qapi/cryptodev: Drop unwanted 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 11/19] qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix, Markus Armbruster, 2024/09/04
- [PATCH v2 08/19] qapi/ui: Drop temporary 'prefix', Markus Armbruster, 2024/09/04
- [PATCH v2 16/19] qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo, Markus Armbruster, 2024/09/04
- [PATCH v2 01/19] qapi: Smarter camel_to_upper() to reduce need for 'prefix', Markus Armbruster, 2024/09/04