From abcddc595afdb743e2a4645ad2e42d7cd9bff41f Mon Sep 17 00:00:00 2001 From: Kedareswara rao Appana Date: Wed, 29 Oct 2014 15:58:18 +0530 Subject: [PATCH] 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 --- ThirdParty/sw_services/lwip140/data/lwip140.mld | 2 +- ThirdParty/sw_services/lwip140/data/lwip140.tcl | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ThirdParty/sw_services/lwip140/data/lwip140.mld b/ThirdParty/sw_services/lwip140/data/lwip140.mld index 234a8813..a7266ae3 100755 --- a/ThirdParty/sw_services/lwip140/data/lwip140.mld +++ b/ThirdParty/sw_services/lwip140/data/lwip140.mld @@ -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; diff --git a/ThirdParty/sw_services/lwip140/data/lwip140.tcl b/ThirdParty/sw_services/lwip140/data/lwip140.tcl index 571c1b53..c966971a 100755 --- a/ThirdParty/sw_services/lwip140/data/lwip140.tcl +++ b/ThirdParty/sw_services/lwip140/data/lwip140.tcl @@ -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]