Rename alloced_size to allocated_size.
Rename num_queues_alloced to num_queues_allocated.

Signed-off-by: Oleksandr Kolomeiets <okl-...@napatech.com>
---
 drivers/net/ntnic/include/hw_mod_backend.h           |  2 +-
 .../net/ntnic/nthw/flow_api/hw_mod/hw_mod_backend.c  |  4 ++--
 drivers/net/ntnic/ntnic_ethdev.c                     | 12 ++++++------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/net/ntnic/include/hw_mod_backend.h 
b/drivers/net/ntnic/include/hw_mod_backend.h
index fcf9ebef8e..f7d4085e5c 100644
--- a/drivers/net/ntnic/include/hw_mod_backend.h
+++ b/drivers/net/ntnic/include/hw_mod_backend.h
@@ -145,7 +145,7 @@ enum km_flm_if_select_e {
 #define COMMON_FUNC_INFO_S                                                     
                   \
        int ver;                                                                
                  \
        void *base;                                                             
                  \
-       unsigned int alloced_size;                                              
                  \
+       unsigned int allocated_size;                                            
                  \
        int debug
 
 enum frame_offs_e {
diff --git a/drivers/net/ntnic/nthw/flow_api/hw_mod/hw_mod_backend.c 
b/drivers/net/ntnic/nthw/flow_api/hw_mod/hw_mod_backend.c
index 299b9b913a..da126fe853 100644
--- a/drivers/net/ntnic/nthw/flow_api/hw_mod/hw_mod_backend.c
+++ b/drivers/net/ntnic/nthw/flow_api/hw_mod/hw_mod_backend.c
@@ -79,14 +79,14 @@ void *nthw_callocate_mod(struct common_func_s *mod, int 
sets, ...)
        va_end(args);
 
        mod->base = base;
-       mod->alloced_size = total_bytes;
+       mod->allocated_size = total_bytes;
 
        return base;
 }
 
 void nthw_zero_module_cache(struct common_func_s *mod)
 {
-       memset(mod->base, 0, mod->alloced_size);
+       memset(mod->base, 0, mod->allocated_size);
 }
 
 int nthw_flow_api_backend_init(struct flow_api_backend_s *dev,
diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c
index 6ba6769e47..f511d91e49 100644
--- a/drivers/net/ntnic/ntnic_ethdev.c
+++ b/drivers/net/ntnic/ntnic_ethdev.c
@@ -967,19 +967,19 @@ static void eth_rx_queue_release(struct rte_eth_dev 
*eth_dev, uint16_t queue_id)
        deallocate_hw_virtio_queues(&rx_q->hwq);
 }
 
-static int num_queues_alloced;
+static int num_queues_allocated;
 
 /* Returns num queue starting at returned queue num or -1 on fail */
 static int allocate_queue(int num)
 {
-       int next_free = num_queues_alloced;
-       NT_LOG_DBGX(DBG, NTNIC, "num_queues_alloced=%u, New queues=%u, Max 
queues=%u",
-               num_queues_alloced, num, MAX_TOTAL_QUEUES);
+       int next_free = num_queues_allocated;
+       NT_LOG_DBGX(DBG, NTNIC, "num_queues_allocated=%u, New queues=%u, Max 
queues=%u",
+               num_queues_allocated, num, MAX_TOTAL_QUEUES);
 
-       if (num_queues_alloced + num > MAX_TOTAL_QUEUES)
+       if (num_queues_allocated + num > MAX_TOTAL_QUEUES)
                return -1;
 
-       num_queues_alloced += num;
+       num_queues_allocated += num;
        return next_free;
 }
 
-- 
2.47.1

Reply via email to