From c7705e584397c0caf1d3c1f43724bc1a60856c0c Mon Sep 17 00:00:00 2001 From: Harini Katakam Date: Fri, 9 Oct 2015 17:35:21 +0530 Subject: [PATCH] lwip: Remove SYS_ARCH_PROTECT calls in input Remove protect and unprotect calls in xemacif_input because this is alreayd present inside individual interface's input calls and interrupt should be disabled only for that duration. Signed-off-by: Harini Katakam Acked-by: Anirudha Sarangi --- ThirdParty/sw_services/lwip141/src/ChangeLog | 1 + .../lwip141/src/contrib/ports/xilinx/netif/xadapter.c | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ThirdParty/sw_services/lwip141/src/ChangeLog b/ThirdParty/sw_services/lwip141/src/ChangeLog index d57e3e2b..a6d0fa30 100644 --- a/ThirdParty/sw_services/lwip141/src/ChangeLog +++ b/ThirdParty/sw_services/lwip141/src/ChangeLog @@ -3,6 +3,7 @@ Change Log for lwip 2015-09-30 * Created a new version lwip141_v1_3. * Made changes in xemacpsif_dma.c to add required barriers. + * Remove repeated sysarch protect and unprotect calls. 2015-09-09 * Fix compilation issues with the non hier axi eth design 2015-09-04 diff --git a/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c b/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c index 5a7f89ba..2eb79477 100644 --- a/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c +++ b/ThirdParty/sw_services/lwip141/src/contrib/ports/xilinx/netif/xadapter.c @@ -216,9 +216,7 @@ xemacif_input(struct netif *netif) switch (emac->type) { case xemac_type_xps_emaclite: #ifdef XLWIP_CONFIG_INCLUDE_EMACLITE - SYS_ARCH_PROTECT(lev); n_packets = xemacliteif_input(netif); - SYS_ARCH_UNPROTECT(lev); break; #else print("incorrect configuration: xps_ethernetlite drivers not present?"); @@ -227,9 +225,7 @@ xemacif_input(struct netif *netif) #endif case xemac_type_axi_ethernet: #ifdef XLWIP_CONFIG_INCLUDE_AXI_ETHERNET - SYS_ARCH_PROTECT(lev); n_packets = xaxiemacif_input(netif); - SYS_ARCH_UNPROTECT(lev); break; #else print("incorrect configuration: axi_ethernet drivers not present?"); @@ -239,9 +235,7 @@ xemacif_input(struct netif *netif) #if defined (__arm__) || defined (__aarch64__) case xemac_type_emacps: #ifdef XLWIP_CONFIG_INCLUDE_GEM - SYS_ARCH_PROTECT(lev); n_packets = xemacpsif_input(netif); - SYS_ARCH_UNPROTECT(lev); break; #else xil_printf("incorrect configuration: ps7_ethernet drivers not present?\r\n");