mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02: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:
committed by
David S. Miller
parent
c2ee8181fd
commit
18be654a43
@@ -57,6 +57,10 @@ static struct sk_buff *qca_tag_rcv(struct sk_buff *skb, struct net_device *dev)
|
||||
if (pk_type == QCA_HDR_RECV_TYPE_RW_REG_ACK)
|
||||
return NULL;
|
||||
|
||||
/* Ethernet MIB counter packet */
|
||||
if (pk_type == QCA_HDR_RECV_TYPE_MIB)
|
||||
return NULL;
|
||||
|
||||
/* Remove QCA tag and recalculate checksum */
|
||||
skb_pull_rcsum(skb, QCA_HDR_LEN);
|
||||
dsa_strip_etype_header(skb, QCA_HDR_LEN);
|
||||
|
Reference in New Issue
Block a user