1. A method of controlling a vehicle having an electric machine and a diesel particulate filter (DPF) coupled to an engine, comprising: in response to a DPF temperature exceeding a threshold during regeneration of the DPF while the engine is in idle mode, operating, by a controller, the electric machine in a generator mode to increase engine load and adjusting fueling to the engine to compensate for the engine load increase.