diff options
author | Yuyang Huang <yuyanghuang@google.com> | 2023-12-09 10:31:02 +0900 |
---|---|---|
committer | Yuyang Huang <yuyanghuang@google.com> | 2023-12-09 10:31:02 +0900 |
commit | 1ddea3a1908f5d005b90dde746a3db148bd290df (patch) | |
tree | cf1d231a740ee1500e0e40b912c95f09a165ecda /v5/apf_interpreter.h | |
parent | 96fe91c90d7a61e9f0b3e9033efcb7c0d0ea0603 (diff) | |
download | apf-1ddea3a1908f5d005b90dde746a3db148bd290df.tar.gz |
Update allocate/transmit API parameter type
Update apf_allocate_buffer() and apf_transmit_buffer() parameter to take
uint32_t instead of int.
Bug: 293811969
Test: TH
Change-Id: Ida3f5e8662fc7a4372d44f429c6f80071906c685
Diffstat (limited to 'v5/apf_interpreter.h')
-rw-r--r-- | v5/apf_interpreter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/v5/apf_interpreter.h b/v5/apf_interpreter.h index a64a68e..9954d37 100644 --- a/v5/apf_interpreter.h +++ b/v5/apf_interpreter.h @@ -52,7 +52,7 @@ uint32_t apf_version(); * pending transmit. Returning NULL will most likely result in the * apf_run() returning PASS. */ -uint8_t* apf_allocate_buffer(void* ctx, int size); +uint8_t* apf_allocate_buffer(void* ctx, uint32_t size); /** * Transmits the allocated buffer and deallocates it. @@ -84,7 +84,7 @@ uint8_t* apf_allocate_buffer(void* ctx, int size); * the firmware thinks the transmit will succeed. Returning an error * will likely result in apf_run() returning PASS. */ -int apf_transmit_buffer(void* ctx, uint8_t* ptr, int len, uint8_t dscp); +int apf_transmit_buffer(void* ctx, uint8_t* ptr, uint32_t len, uint8_t dscp); /** * Runs an APF program over a packet. |