mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-16 01:03:57 -04:00
net: dsa: tag_qca: add define for handling MIB packet
Add struct to correctly parse a mib Ethernet packet. 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>
This commit is contained in:
parent
c2ee8181fd
commit
18be654a43
2 changed files with 14 additions and 0 deletions
|
@ -62,4 +62,14 @@ struct qca_mgmt_ethhdr {
|
|||
__be16 hdr; /* qca hdr */
|
||||
} __packed;
|
||||
|
||||
enum mdio_cmd {
|
||||
MDIO_WRITE = 0x0,
|
||||
MDIO_READ
|
||||
};
|
||||
|
||||
struct mib_ethhdr {
|
||||
u32 data[3]; /* first 3 mib counter */
|
||||
__be16 hdr; /* qca hdr */
|
||||
} __packed;
|
||||
|
||||
#endif /* __TAG_QCA_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue