]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpts: clean up event list if event pool is empty
authorWingMan Kwok <w-kwok2@ti.com>
Wed, 7 Dec 2016 00:00:39 +0000 (18:00 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 16:13:47 +0000 (11:13 -0500)
commit24418aab4e4b241c3904347383f602e1bc1a795b
tree3d8810050dda07ffad962436a14c763a2daf960a
parentc82f99d4c8ab57114ecc16240600f1ae66939a05
net: ethernet: ti: cpts: clean up event list if event pool is empty

When a CPTS user does not exit gracefully by disabling cpts
timestamping and leaving a joined multicast group, the system
continues to receive and timestamps the ptp packets which eventually
occupy all the event list entries.  When this happns, the added code
tries to remove some list entries which are expired.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpts.c