]> 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)
commit413aee971f1e841db008c1ec017d98ed849056b7
tree6f42e1c601b2d3c1fac8d7696d345623ecdeb53c
parentf521ff22c7eb4fb2570729c17788e655b69a18ac
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