LCOV - code coverage report
Current view: top level - spdk/lib/nvmf - stubs.c (source / functions) Hit Total Coverage
Test: Combined Lines: 1 16 6.2 %
Date: 2024-07-15 12:59:45 Functions: 1 6 16.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright (c) 2024 Intel Corporation
       3                 :            :  */
       4                 :            : 
       5                 :            : #include "spdk/config.h"
       6                 :            : #include "spdk/log.h"
       7                 :            : #include "spdk/nvmf_transport.h"
       8                 :            : 
       9                 :            : #include "nvmf_internal.h"
      10                 :            : 
      11                 :            : #ifndef SPDK_CONFIG_HAVE_EVP_MAC
      12                 :            : int
      13                 :          0 : nvmf_qpair_auth_init(struct spdk_nvmf_qpair *qpair)
      14                 :            : {
      15                 :          0 :         return -ENOTSUP;
      16                 :            : }
      17                 :            : 
      18                 :            : void
      19                 :          0 : nvmf_qpair_auth_destroy(struct spdk_nvmf_qpair *qpair)
      20                 :            : {
      21         [ #  # ]:          0 :         assert(qpair->auth == NULL);
      22                 :          0 : }
      23                 :            : 
      24                 :            : void
      25                 :          0 : nvmf_qpair_auth_dump(struct spdk_nvmf_qpair *qpair, struct spdk_json_write_ctx *w)
      26                 :            : {
      27                 :          0 : }
      28                 :            : 
      29                 :            : int
      30                 :          0 : nvmf_auth_request_exec(struct spdk_nvmf_request *req)
      31                 :            : {
      32                 :          0 :         struct spdk_nvme_cpl *cpl = &req->rsp->nvme_cpl;
      33                 :            : 
      34                 :          0 :         cpl->status.sct = SPDK_NVME_SCT_GENERIC;
      35                 :          0 :         cpl->status.sc = SPDK_NVME_SC_INVALID_OPCODE;
      36                 :            : 
      37                 :          0 :         spdk_nvmf_request_complete(req);
      38                 :            : 
      39                 :          0 :         return SPDK_NVMF_REQUEST_EXEC_STATUS_ASYNCHRONOUS;
      40                 :            : }
      41                 :            : 
      42                 :            : bool
      43                 :          0 : nvmf_auth_is_supported(void)
      44                 :            : {
      45                 :          0 :         return false;
      46                 :            : }
      47                 :            : 
      48                 :         66 : SPDK_LOG_REGISTER_COMPONENT(nvmf_auth)
      49                 :            : #endif /* !SPDK_CONFIG_HAVE_EVP_MAC */
      50                 :            : 
      51                 :            : #ifndef SPDK_CONFIG_RDMA
      52                 :            : void
      53                 :            : spdk_nvmf_rdma_init_hooks(struct spdk_nvme_rdma_hooks *hooks)
      54                 :            : {
      55                 :            :         SPDK_ERRLOG("spdk_nvmf_rdma_init_hooks() is unsupported: RDMA transport is not available\n");
      56                 :            :         abort();
      57                 :            : }
      58                 :            : #endif /* !SPDK_CONFIG_RDMA */

Generated by: LCOV version 1.14