]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: let deferred packets time out when sent to ports going down
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 9 Dec 2021 23:34:39 +0000 (01:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2021 12:51:33 +0000 (12:51 +0000)
commitb3957165b027dc7a5b0b755942eb9e3a9c2d13ad
tree6f42e1c601b2d3c1fac8d7696d345623ecdeb53c
parent3c4ffc43a24fc609c097883730cda039b9404836
net: dsa: sja1105: let deferred packets time out when sent to ports going down

This code is not necessary and complicates the conversion of this driver
to tagger-owned memory. If there is a PTP packet that is sent
concurrently with the port getting disabled, the deferred xmit mechanism
is robust enough to time out when it sees that it hasn't been delivered,
and recovers.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c