Is it needed to disable all interrupts (Microchip )

We are in the process of evaluating the W5200 using the W5200 pictail plus module + hardware stack + dspic33e mcu.

We optimized the provided sample code for the HW stack somewhat, and noticed the enabling/disabling of interrupts while sending SPI. I disabled this (leaving interrupts on), and the stack stopped working reliably.

Is it really important to disable all interrupts, or do only certain interrupts (the w5200 interrupt pin and its SPI) need to be disabled? We have some fairly small interrupts that need to run reliably (only toggling some pins)

Hi,
Interrup enable/disable block in sample code just have both SPI resource & W5200.
Another interrupt maybe free from our W5200 handing.

Thank you.