]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Increase priority of CPU-trapped frames
authorVladimir Oltean <olteanv@gmail.com>
Sat, 8 Jun 2019 12:04:41 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2019 22:20:40 +0000 (15:20 -0700)
commit0619e3c6583f1d90f4d773d60b91e4d97d03ce07
tree346d8e9e11cec632a2fb52a5c96d2b0b938bd47e
parentb67145e5f85f5e5fcf8b22af51fc42b79db42a61
net: dsa: sja1105: Increase priority of CPU-trapped frames

Without noticing any particular issue, this patch ensures that
management traffic is treated with the maximum priority on RX by the
switch.  This is generally desirable, as the driver keeps a state
machine that waits for metadata follow-up frames as soon as a management
frame is received.  Increasing the priority helps expedite the reception
(and further reconstruction) of the RX timestamp to the driver after the
MAC has generated it.

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