Skip to content

Commit

Permalink
Merge branch 'v8_1'
Browse files Browse the repository at this point in the history
  • Loading branch information
abower-amd committed May 31, 2024
2 parents 85cf55a + bdcf4a9 commit 0f3a969
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 7 deletions.
6 changes: 5 additions & 1 deletion doc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ tcpdirect-8.1.3

See corresponding onload-8.1.3 changelog for changes in OS support.

Placeholder for Bug fixes:
Changes:

ON-13593: add udp_ttl attribute to control TTL on sent UDP packets
ON-15421: stop exporting ef_vi symbols in the dynamic library
ON-15816: ensure local address is initialized when recycling zft_handle


tcpdirect-8.1.2.38
Expand Down
8 changes: 4 additions & 4 deletions doc/ReleaseNotes
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
TCPDirect-8.1.3
===============

Placeholder for minor update release of TCPDirect to match Onload-8.1.3 and
This is a minor update release of TCPDirect to match Onload-8.1.3 and
including bug fixes since TCPDirect-8.1.2.38. See changelog for details.


TCPDirect-8.1.2.38
==================

This is a minor update release of TCP Direct to match Onload-8.1.2 and
This is a minor update release of TCPDirect to match Onload-8.1.2 and
including bug fixes since TCPDirect-8.1.1.23. See changelog for details.


TCPDirect-8.1.1.23
==================

This is a minor update release of TCP Direct to match Onload-8.1.1,
This is a minor update release of TCPDirect to match Onload-8.1.1,
also including a bug fix. See changelog for details.


TCPDirect-8.1.0.19
==================

This is a feature release of TCP Direct to be used with Onload-8.1.0.
This is a feature release of TCPDirect to be used with Onload-8.1.0.


TCPDirect-8.0.2.11
Expand Down
11 changes: 11 additions & 0 deletions src/include/zf_internal/private/zf_emu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
#define __ZF_INTERNAL_ZF_EMU_H__

#include <cplane/mib.h>

#ifdef __cplusplus
/* Needed because in C++ an empty struct has a non-zero size. Additionally, a
* zero-length array is used instead of a standard flexible array member so that
* it can be used in the middle of a struct without gcc complaining. */
#undef __DECLARE_FLEX_ARRAY
#define __DECLARE_FLEX_ARRAY(TYPE, NAME) \
struct { \
TYPE NAME[0]; \
}
#endif
#include <etherfabric/internal/efct_uk_api.h>

/* These interface names are used for the default configuration of the "back-
Expand Down
2 changes: 1 addition & 1 deletion src/lib/zf/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $(LIB_OBJS): $(CP_INTF_VER_HDR) $(ONLOAD_VERSION_HDR)

$(ZF_SHARED_LIB): $(LIB_OBJS) $(LDEP)
@mkdir -p $(dir $@)
$(CLINK) -shared -fPIC $^ -e zf_print_version -Wl,-soname,$(ZF_SONAME) -o $@
$(CLINK) -shared -fPIC $^ -e zf_print_version -Wl,-soname,$(ZF_SONAME),--exclude-libs,libciul1.a -o $@

$(ZF_SHARED_LIB_STRIPPED): $(ZF_SHARED_LIB)
@mkdir -p $(dir $@)
Expand Down
2 changes: 2 additions & 0 deletions src/lib/zf/private/zf_emu_superbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/* prevent ci/driver/ci_efct.h and ci_aux.h from getting included */
#define CI_DRIVER_CI_EFCT_H

#include <zf_internal/private/zf_emu.h>

#include <ci/tools/sysdep.h>
#include <ci/tools/debug.h>
#include <ci/tools/log.h>
Expand Down
1 change: 1 addition & 0 deletions src/lib/zf/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static int __zft_handle_free(zf_stack* stack, zf_tcp* tcp)

zf_stack_tcp_to_res(stack, tcp, &rx_res);
zfrr_release_port(stack, rx_res);
memset(&tcp->laddr, 0, sizeof(tcp->laddr));

if( tcp->eof_pkt != PKT_INVALID ) {
zf_pool_free_pkt(&stack->pool, tcp->eof_pkt);
Expand Down
1 change: 1 addition & 0 deletions src/lib/zf/zf_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ static void zf_tcp_free(struct zf_stack* stack, struct zf_tcp* tcp)
/* In case zocket was never connected but bound we need to free port
* the same applies to zft_handle */
zfrr_release_port(stack, rx_res);
memset(&tcp->laddr, 0, sizeof(tcp->laddr));

if( tcp->eof_pkt != PKT_INVALID ) {
zf_pool_free_pkt(&stack->pool, tcp->eof_pkt);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/trade_sim/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SHARED_APP_BINS := $(TEST_APPS:%=$(BIN_SHARED)/%)
STATIC_APP_BINS := $(TEST_APPS:%=$(BIN_STATIC)/%)
APP_BINS := $(SHARED_APP_BINS) $(STATIC_APP_BINS)

$(SHARED_APP_BINS): $(BIN_SHARED)/%: $(OBJ_CURRENT)/%.o $(OBJ_CURRENT)/utils.o $(ZF_SHARED_LIB)
$(SHARED_APP_BINS): $(BIN_SHARED)/%: $(OBJ_CURRENT)/%.o $(OBJ_CURRENT)/utils.o $(ZF_SHARED_LIB) $(CIUL_LIB)
$(STATIC_APP_BINS): $(BIN_STATIC)/%: $(OBJ_CURRENT)/%.o $(OBJ_CURRENT)/utils.o $(ZF_STATIC_LIB)

ifdef ONLOAD_TREE
Expand Down
13 changes: 13 additions & 0 deletions src/tests/zf_unit/zfzockfree.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,17 @@ static int create_zocket(struct zf_stack* stack, struct zf_attr* attr,
struct zft** tcp_out)
{
struct zft_handle* tcp_handle;
struct sockaddr_in laddr;
socklen_t len = sizeof(laddr);

int rc = zft_alloc(stack, attr, &tcp_handle);
if( rc < 0 )
return rc;

zft_handle_getname(tcp_handle, (struct sockaddr *)&laddr, &len);
if( laddr.sin_port != 0 )
return -EBUSY;

/* Do a loopback connect. There's nothing listening, but we don't care: we
* just want to install the filters. */
rc = zft_addr_bind(tcp_handle,
Expand Down Expand Up @@ -173,11 +180,17 @@ static int create_zocket(struct zf_stack* stack, struct zf_attr* attr,
{
(void) local_port_he;
(void) remote_port_he;
struct sockaddr_in laddr;
socklen_t len = sizeof(laddr);

int rc = zft_alloc(stack, attr, tcp_handle_out);
if( rc < 0 )
return rc;

zft_handle_getname(*tcp_handle_out, (struct sockaddr *)&laddr, &len);
if( laddr.sin_port != 0 )
return -EBUSY;

return 0;
}

Expand Down

0 comments on commit 0f3a969

Please sign in to comment.