/* This function removes the Wrap specified by Context and releases relevant resources. */
VOID EFIAPI Udp6RecycleRxDataWrap(IN EFI_EVENT Event, IN VOID *Context)
/* This function removes the Wrap specified by Context and releases relevant resources. */
VOID EFIAPI Udp6RecycleRxDataWrap(IN EFI_EVENT Event, IN VOID *Context)
{
  UDP6_RXDATA_WRAP  *Wrap;
  Wrap = (UDP6_RXDATA_WRAP *)Context;
  RemoveEntryList (&Wrap->Link);
  NetbufFree (Wrap->Packet);
  gBS->CloseEvent (Wrap->RxData.RecycleSignal);
  FreePool (Wrap);
}