diff options
author | 2018-07-04 11:36:02 +0800 | |
---|---|---|
committer | 2018-07-18 10:06:24 +0800 | |
commit | 000ee67eeeaa9868a98c9d2d743db90357ba3fa0 (patch) | |
tree | 2713e30f73f4d3ae1ab02f9f640efbf5bcd14e14 /src/nSocket/nstack/nstack_socket.h | |
parent | 4cfebdd30a88eb27e9f8baa6634005239851bf02 (diff) |
Update dpdk version from 16.04 to 18.02
Change-Id: Idebbee1d61211e1e800df82e0d474cf3ef099075
Signed-off-by: rainbow_0206 <jiangwenjiang@huawei.com>
Diffstat (limited to 'src/nSocket/nstack/nstack_socket.h')
-rw-r--r-- | src/nSocket/nstack/nstack_socket.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/nSocket/nstack/nstack_socket.h b/src/nSocket/nstack/nstack_socket.h index 3bc4a10..3bb7843 100644 --- a/src/nSocket/nstack/nstack_socket.h +++ b/src/nSocket/nstack/nstack_socket.h @@ -190,12 +190,18 @@ UNLOCK_CLOSE (nstack_fd_local_lock_info_t * local_lock) #define UNLOCK_FOR_EP(local_lock) UNLOCK_CLOSE(local_lock) -#define NSTACK_INIT_CHECK_RET(fun) \ - if (nstack_fw_init()) { \ - NSSOC_LOGERR("nstack %s call, but initial not finished yet [return]", #fun); \ - nstack_set_errno(ENOSYS); \ - return -1; \ - } +#define NSTACK_INIT_CHECK_RET(fun, args...) \ + do { \ + if (NSTACK_MODULE_INITING == g_nStackInfo.fwInited) { \ + NSSOC_LOGINF ("call kernel func %s", #fun); \ + return nsfw_base_##fun(args); \ + } \ + if (nstack_fw_init()) { \ + NSSOC_LOGERR("nstack %s call, but initial not finished yet [return]", #fun); \ + nstack_set_errno(ENOSYS); \ + return -1; \ + } \ + }while(0) #define NSTACK_MODULE_ERROR_SET(Index) |