FreeRTOS-Plus-TCP upgrade from 3.1.0 to 4.2.2

Hi,
I recently upgraded FreeRTOS-Plus-TCP from v3.1.0 to v4.2.2. The FreeRTOS kernel is v10.0.0. While using 3.1.0, I would define ipconfigIP_TASK_PRIORITY as ( (configMAX_PRIORITIES - 2) | portPRIVILEGE_BIT). But after the upgrade, when I compile I am getting an error which says IP task priority cannot be greater than (configMAX_PRIORITIES - 1). Not setting portPRIVILEGE_BIT resolves the issue though. Is there a different way to run the IP task as a privileged task? It seems like the error is being thrown by the following line in FreeRTOSIPConfigDefaults.h. When I tried running IP task by removing the portPRIVILEGE_BIT but it causes prefetch abort.

#if ( ipconfigIP_TASK_PRIORITY > ( configMAX_PRIORITIES - 1 ) )
#error ipconfigIP_TASK_PRIORITY must be at most configMAX_PRIORITIES - 1
#endif

Thanks,
Ravi

@rdarbha

Can you try updating the above mentioned lines in source\include\FreeRTOSIPConfigDefaults.h to something like this:

#if (configENABLE_MPU != 0)
    #if ( ipconfigIP_TASK_PRIORITY > ( ( configMAX_PRIORITIES - 1 ) | portPRIVILEGE_BIT ) )
        #error ipconfigIP_TASK_PRIORITY must be at most ( ( configMAX_PRIORITIES - 1 ) | portPRIVILEGE_BIT ) )
    #endif
#else
    #if ( ipconfigIP_TASK_PRIORITY > ( configMAX_PRIORITIES - 1 ) )
        #error ipconfigIP_TASK_PRIORITY must be at most configMAX_PRIORITIES - 1
    #endif
#endif

We have updated the main branch by removing that check, as we already have the check in the Kernel for invalid priority configurations.