LCOV - code coverage report
Current view: top level - lib/hash - rte_thash_gfni.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 1 13 7.7 %
Date: 2025-03-01 20:23:48 Functions: 1 3 33.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 8 12.5 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2021 Intel Corporation
       3                 :            :  */
       4                 :            : 
       5                 :            : #include <stdbool.h>
       6                 :            : 
       7                 :            : #include <rte_log.h>
       8                 :            : #include <rte_thash_gfni.h>
       9                 :            : 
      10         [ -  + ]:        252 : RTE_LOG_REGISTER_SUFFIX(hash_gfni_logtype, gfni, INFO);
      11                 :            : #define RTE_LOGTYPE_HASH hash_gfni_logtype
      12                 :            : #define HASH_LOG(level, ...) \
      13                 :            :         RTE_LOG_LINE(level, HASH, "" __VA_ARGS__)
      14                 :            : 
      15                 :            : uint32_t
      16                 :          0 : rte_thash_gfni_stub(const uint64_t *mtrx __rte_unused,
      17                 :            :         const uint8_t *key __rte_unused, int len __rte_unused)
      18                 :            : {
      19                 :            :         static bool warned;
      20                 :            : 
      21         [ #  # ]:          0 :         if (!warned) {
      22                 :          0 :                 warned = true;
      23                 :          0 :                 HASH_LOG(ERR,
      24                 :            :                         "%s is undefined under given arch", __func__);
      25                 :            :         }
      26                 :            : 
      27                 :          0 :         return 0;
      28                 :            : }
      29                 :            : 
      30                 :            : void
      31                 :          0 : rte_thash_gfni_bulk_stub(const uint64_t *mtrx __rte_unused,
      32                 :            :         int len __rte_unused, uint8_t *tuple[] __rte_unused,
      33                 :            :         uint32_t val[], uint32_t num)
      34                 :            : {
      35                 :            :         unsigned int i;
      36                 :            : 
      37                 :            :         static bool warned;
      38                 :            : 
      39         [ #  # ]:          0 :         if (!warned) {
      40                 :          0 :                 warned = true;
      41                 :          0 :                 HASH_LOG(ERR,
      42                 :            :                         "%s is undefined under given arch", __func__);
      43                 :            :         }
      44                 :            : 
      45         [ #  # ]:          0 :         for (i = 0; i < num; i++)
      46                 :          0 :                 val[i] = 0;
      47                 :          0 : }

Generated by: LCOV version 1.14