1. A switch comprising: an instruction decode stage configured to: receive a bulk instruction identifying an action to perform on frame entries of a lookup stage; and in response to receiving the bulk instruction, perform a loop function, the loop function including a number of iterations based on a number of frame entries included in the switch, each of the iterations including sending a frame entry instruction to the lookup stage, each of the frame entry instructions identifying the action and identifying a unique frame entry in the lookup stage upon which to perform the action, the identified unique frame entry being based on an iteration number of an iteration; and the lookup stage configured to: receive the frame entry instructions from the instruction decode stage; and in response to receiving each of the frame entry instructions, perform the identified action on the frame entry identified by the respective flame entry instruction.