Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ee/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ EE_CFLAGS += -Werror
# This is to enable the debug mode into ps2link
ifeq ($(DEBUG),1)
EE_CFLAGS += -DDEBUG -g
else
endif
EE_CFLAGS += -Os
EE_CFLAGS += -fdata-sections -ffunction-sections
endif

ifeq ($(DEBUG),1)
EE_LDFLAGS += -g
else
EE_LDFLAGS += -s
EE_LDFLAGS += -Wl,--gc-sections
endif
EE_LDFLAGS += -Wl,--gc-sections
EE_LDFLAGS += -Wl,-Map,ps2link.map

# This is to read the closest tag version
Expand Down
1 change: 1 addition & 0 deletions iop/imports.lst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ I_lwip_recvfrom
I_lwip_close
I_lwip_bind
I_lwip_accept
I_lwip_setsockopt
ps2ip_IMPORTS_end

sifcmd_IMPORTS_start
Expand Down
7 changes: 7 additions & 0 deletions iop/net_fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,13 @@ int pko_file_serv(void *argv)
ret = disconnect(pko_fileio_sock);
dbgprintf("close ret %d\n", ret);
}

/* Disable Nagle on IOP side so small request packets are sent
* immediately without waiting for previous data to be ACKed. */
{
int one = 1;
setsockopt(client_sock, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
}
pko_fileio_sock = client_sock;
}

Expand Down