diff options
author | Jianfeng Tan <henry.tjf@antfin.com> | 2019-06-13 15:01:09 +0800 |
---|---|---|
committer | Daniel Pono Takamori <dtakamori@contractor.linuxfoundation.org> | 2019-06-27 11:57:30 -0700 |
commit | 85b0a328d71300572a3c2e8b5b722c00ed0ac6e8 (patch) | |
tree | f4bc8beb9569081705b404650f60c24be183031b /lib/libtle_l4p/tcp_stream.c | |
parent | cecfc87fc706a6ac819aa213b368072fa011bcae (diff) |
dpdk: automate make config
Users need two steps to compile DPDK:
$ make config -C dpdk
$ make -C dpdk
We don't see the value for that. Add config as a dependency so that we
can compile it with only one step:
$ make -C dpdk
Change-Id: I78bc728e904d969be9ef7575029eea9fda105bc6
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
IT-16521
Diffstat (limited to 'lib/libtle_l4p/tcp_stream.c')
-rw-r--r-- | lib/libtle_l4p/tcp_stream.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libtle_l4p/tcp_stream.c b/lib/libtle_l4p/tcp_stream.c index 4e9ddb7..676521b 100644 --- a/lib/libtle_l4p/tcp_stream.c +++ b/lib/libtle_l4p/tcp_stream.c @@ -506,6 +506,12 @@ tle_tcp_stream_listen(struct tle_stream *ts) if (ts == NULL || s->s.type >= TLE_VNUM) return -EINVAL; + /* app may listen for multiple times to change backlog, + * we will just return success for such cases. + */ + if (s->tcb.state == TCP_ST_LISTEN) + return 0; + /* mark stream as not closable. */ if (tcp_stream_try_acquire(s) > 0) { rc = rte_atomic16_cmpset(&s->tcb.state, TCP_ST_CLOSED, |