]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_qca: add define for handling mgmt Ethernet packet
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 2 Feb 2022 00:03:25 +0000 (01:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Feb 2022 14:43:59 +0000 (14:43 +0000)
commitc2ee8181fddb293d296477f60b3eb4fa3ce4e1a6
tree350751ab0bd73d23988346c5987bdc15537b3c9e
parent101c04c3463b87061e6a3d4f72c1bc57670685a6
net: dsa: tag_qca: add define for handling mgmt Ethernet packet

Add all the required define to prepare support for mgmt read/write in
Ethernet packet. Any packet of this type has to be dropped as the only
use of these special packet is receive ack for an mgmt write request or
receive data for an mgmt read request.
A struct is used that emulates the Ethernet header but is used for a
different purpose.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dsa/tag_qca.h
net/dsa/tag_qca.c