We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d2063 commit cb12473Copy full SHA for cb12473
source/portable/NetworkInterface/DriverSAM/NetworkInterface.c
@@ -661,8 +661,12 @@ static BaseType_t prvSAM_NetworkInterfaceOutput( NetworkInterface_t * pxInterfac
661
662
#if ( ipconfigZERO_COPY_TX_DRIVER != 0 )
663
{
664
- /* Confirm that the pxDescriptor may be kept by the driver. */
665
- bReleaseAfterSend = pdFALSE;
+ if( ulResult == GMAC_OK )
+ {
666
+ /* The message was send in a zero-copy way.
667
+ * It will be released after a succeful transmission. */
668
+ bReleaseAfterSend = pdFALSE;
669
+ }
670
}
671
#endif /* ipconfigZERO_COPY_TX_DRIVER */
672
/* Not interested in a call-back after TX. */
0 commit comments