code: func (memif *Memif) SetRxMode(queueID uint8, rxMode RxMode) (err error) {
  	var cRxMode C.memif_rx_mode_t
  	switch rxMode {
  	case RxModeInterrupt:
  		cRxMode = C.MEMIF_RX_MODE_INTERRUPT
  	case RxModePolling:
  		cRxMode = C.MEMIF_RX_MODE_POLLING
  	default:
  		cRxMode = C.MEMIF_RX_MODE_INTERRUPT
  	}
  	errCode := C.memif_set_rx_mode(memif.cHandle, cRxMode, C.uint16_t(queueID))
  	return getMemifError(int(errCode))
  }
docs: // SetRxMode allows to switch between the interrupt and the polling mode for Rx.
  // The method is thread-safe.