Skip to content

Commit a61e25f

Browse files
committed
app each thread should call anssock_init() and refactor ip frag
1 parent 33e7bb0 commit a61e25f

15 files changed

+5
-5
lines changed

examples/https_server/ans_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@
7272

7373

7474
/*
75-
* opendp socket fd large than linux "ulimit -n " value
75+
* ANS socket fd large than linux "ulimit -n " value
7676
*
7777
*/
7878
#define ANS_FD_BASE 2000
7979

80-
/* 1: redis socket will go through opendp stack, 0: go through linux stack */
80+
/* 1: redis socket will go through ANS stack, 0: go through linux stack */
8181
int ans_sock_enable = 1;
8282

8383
int ansfd_debug_flag = 0;

librte_ans/include/ans_errno.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#include <errno.h>
7878

7979
#define ANS_EPERM EPERM /* Operation not permitted */
80-
#define ANS_ENOENT ENOENT /* No such file or directory */
80+
#define ANS_ENOENT ENOENT /* No such file or directory */
8181
#define ANS_ESRCH ESRCH /* No such process */
8282
#define ANS_EINTR EINTR /* Interrupted system call */
8383
#define ANS_EIO EIO /* Input/output error */

librte_ans/librte_ans_broadwell.a

8 Bytes
Binary file not shown.

librte_ans/librte_ans_core2.a

8 Bytes
Binary file not shown.

librte_ans/librte_ans_haswell.a

8 Bytes
Binary file not shown.

librte_ans/librte_ans_ivybridge.a

8 Bytes
Binary file not shown.

librte_ans/librte_ans_sandybridge.a

8 Bytes
Binary file not shown.

librte_ans/librte_ans_westmere.a

8 Bytes
Binary file not shown.

librte_anssock/include/anssock_intf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747

4848

4949
/**
50-
* Init ans socket lib and register a user to ans. One process shall only call it once.
50+
* Init ans socket lib and register a user to ans. Each thread shall call it if the thread need invoke anssock API.
5151
*
5252
* @param file_prefix
53-
* Prefix for hugepage filenames, shall be same as opendp startup parameter(--file-prefix).
53+
* Prefix for hugepage filenames, shall be same as ANS startup parameter(--file-prefix).
5454
* If input is NULL, the default file-prefix is "rte"
5555
* @return
5656
*
104 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)