lwip: Fix echo server app compilation errors for axi-ethernet on zynq

This patch fixes the compilation errors when
axi-ethernet is present in the PL and when user try to generate
echo server application.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
This commit is contained in:
Kedareswara rao Appana 2014-10-29 15:58:18 +05:30 committed by Suneel Garapati
parent ab6f0cad19
commit abcddc595a
2 changed files with 12 additions and 1 deletions

View file

@ -11,7 +11,7 @@ BEGIN LIBRARY lwip140
PARAM name = api_mode, desc = "Mode of operation for lwIP (RAW API/Sockets API)", type = enum, values = ("RAW API" = RAW_API, "SOCKET API" = SOCKET_API), default = RAW_API;
PARAM name = socket_mode_thread_prio, desc = "Priority of threads in socket mode", type = int, default = 2;
PARAM name = use_axieth_on_zynq, desc = "Option if set to 1 ensures axiethernet adapter being used in Zynq. Valid only for Zynq", type = int, default = 0;
PARAM name = use_axieth_on_zynq, desc = "Option if set to 1 ensures axiethernet adapter being used in Zynq. Valid only for Zynq", type = int, default = 1;
BEGIN CATEGORY temac_adapter_options
PARAM name = temac_adapter_options, desc = "Settings for xps-ll-temac/Axi-Ethernet/Gem lwIP adapter", type = bool, default = true, permit = none;

View file

@ -539,6 +539,17 @@ proc generate_lwip_opts {libhandle} {
puts $lwipopts_fd "\#define TCP_QUEUE_OOSEQ $tcp_queue_ooseq"
puts $lwipopts_fd "\#define TCP_SND_QUEUELEN 16 * TCP_SND_BUF/TCP_MSS"
set have_ethonzynq 0
foreach emac $emac_periphs_list {
set iptype [get_property IP_NAME $emac]
if {$iptype == "axi_ethernet" || $iptype == "axi_ethernet_buffer" } {
set have_ethonzynq 1
}
}
if { $have_ethonzynq != 1} {
set use_axieth_on_zynq 0
}
if {$proctype != "ps7_cortexa9" || $use_axieth_on_zynq == 1} {
set tx_full_csum_temp [get_property CONFIG.tcp_ip_tx_checksum_offload $libhandle]