diff options
author | Lifang Zhang <lifang.zhang@nokia.com> | 2021-08-18 14:11:32 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-09-30 14:27:54 +0300 |
commit | e7c20893428f9d1a91d46118c8c0cda0e3d5c4eb (patch) | |
tree | 3b7b8b0a9340f4d7ced34deed85a814118a87b1b /helper | |
parent | 8227d89247e718202f7eba746817d3a861080aad (diff) |
helper: cli: add odph_cli_param_t to cli_shm_t
This allows other functions to access cli parameters without
modifying their function parameters.
Signed-off-by: Lifang Zhang <lifang.zhang@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r-- | helper/cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helper/cli.c b/helper/cli.c index 81d41a58a..a139ec2b7 100644 --- a/helper/cli.c +++ b/helper/cli.c @@ -44,6 +44,7 @@ typedef struct { odp_spinlock_t lock; odp_spinlock_t api_lock; odp_instance_t instance; + odph_cli_param_t cli_param; struct sockaddr_in addr; uint32_t max_user_commands; uint32_t num_user_commands; @@ -123,6 +124,8 @@ int odph_cli_init(odp_instance_t instance, const odph_cli_param_t *param) return -1; } + shm->cli_param = *param; + return 0; } |