the present invention relates to a processor and a method for a processor comprising processing means , the method comprising the steps of — admitting a data packet to the processing means based at least partly on a value of a first credit , parameter and a first limit of the first credit parameter ,— decreasing the value of the first credit parameter if the data packet is admitted to the processing means , and — increasing the value of the first credit parameter , in dependence on a value of a second credit parameter , based on which a data packet is admitted to the processing means .