diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2022-02-02 03:03:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-02 17:43:59 +0300 |
commit | 18be654a4345f7d937b4bfbad74bea8093e3a93c (patch) | |
tree | d33993f1f103fda3604d49fb00f57c8afd0f9a5b /include/linux/dsa | |
parent | c2ee8181fddb293d296477f60b3eb4fa3ce4e1a6 (diff) | |
download | linux-18be654a4345f7d937b4bfbad74bea8093e3a93c.tar.xz |
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>
Diffstat (limited to 'include/linux/dsa')
-rw-r--r-- | include/linux/dsa/tag_qca.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/dsa/tag_qca.h b/include/linux/dsa/tag_qca.h index f366422ab7a0..1fff57f2937b 100644 --- a/include/linux/dsa/tag_qca.h +++ b/include/linux/dsa/tag_qca.h @@ -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 */ |