Technique For Deallocation of Memory In A Multicasting Environment
A technique deallocates memory in a multicasting environment, such as within a network device. The technique involves tracking the slowest member of a plurality of multicast members designated to receive an input packet or flow and, other than a deallocation request presented by the slowest member, blocking all deallocation requests from being allowed.
1 . A method for deallocating a memory in a networking device, the method comprising the steps of:
reading an input flow to identify a multicast flow;
determining a plurality of members for the multicast flow;
creating a pointer for each of the plurality of members;
designating one of the plurality of members as a slowest member;
marking as slow the pointer of the slowest member;
reading-out packets of the multicast flow from the memory of the networking device to the plurality of members for the multicast flow;
receiving a deallocation request from each of the plurality of members;
examining the pointer associated with each of the plurality of members making the deallocation request; and
fulfilling the deallocation request for the pointer marked as slow.