diff options
author | Matias Elo <matias.elo@nokia.com> | 2024-06-05 13:51:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 13:51:39 +0300 |
commit | 616034b9c9c789923f7ebe7f1c6d014c4ce8a5d2 (patch) | |
tree | dd1b579c93404d2d98b78944bbdf8313ec499bee /platform/linux-dpdk/odp_schedule_eventdev.c | |
parent | 8063101c4fac56e16c5a2bb9843f2fd9c5acbfd7 (diff) | |
parent | 87913e636da621d47a8d3bc91fbe131abc09c294 (diff) |
Merge ODP v1.45.0.0HEADv1.45.0.0_DPDK_22.11master
Merge ODP linux-generic v1.45.0.0 into linux-dpdk.
Diffstat (limited to 'platform/linux-dpdk/odp_schedule_eventdev.c')
-rw-r--r-- | platform/linux-dpdk/odp_schedule_eventdev.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/platform/linux-dpdk/odp_schedule_eventdev.c b/platform/linux-dpdk/odp_schedule_eventdev.c index 4ef8a51b7..5e13b5ad2 100644 --- a/platform/linux-dpdk/odp_schedule_eventdev.c +++ b/platform/linux-dpdk/odp_schedule_eventdev.c @@ -1,7 +1,5 @@ -/* Copyright (c) 2019, Nokia - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2019 Nokia */ #include <odp_posix_extensions.h> @@ -20,6 +18,7 @@ #include <odp_eventdev_internal.h> #include <odp_packet_io_internal.h> #include <odp_schedule_if.h> +#include <odp_string_internal.h> #include <odp_timer_internal.h> #include <rte_config.h> @@ -821,13 +820,10 @@ static odp_schedule_group_t schedule_group_create(const char *name, if (!_odp_eventdev_gbl->grp[i].allocated) { char *grp_name = _odp_eventdev_gbl->grp[i].name; - if (name == NULL) { + if (name == NULL) grp_name[0] = 0; - } else { - strncpy(grp_name, name, - ODP_SCHED_GROUP_NAME_LEN - 1); - grp_name[ODP_SCHED_GROUP_NAME_LEN - 1] = 0; - } + else + _odp_strcpy(grp_name, name, ODP_SCHED_GROUP_NAME_LEN); grp_update_mask(i, mask); group = (odp_schedule_group_t)i; |