diff options
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 4c0df83dddaf..0ad17b63684d 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -102,6 +102,7 @@ struct dsa_platform_data { | |||
102 | }; | 102 | }; |
103 | 103 | ||
104 | struct packet_type; | 104 | struct packet_type; |
105 | struct dsa_switch; | ||
105 | 106 | ||
106 | struct dsa_device_ops { | 107 | struct dsa_device_ops { |
107 | struct sk_buff *(*xmit)(struct sk_buff *skb, struct net_device *dev); | 108 | struct sk_buff *(*xmit)(struct sk_buff *skb, struct net_device *dev); |
@@ -484,6 +485,10 @@ struct dsa_switch_ops { | |||
484 | struct ifreq *ifr); | 485 | struct ifreq *ifr); |
485 | int (*port_hwtstamp_set)(struct dsa_switch *ds, int port, | 486 | int (*port_hwtstamp_set)(struct dsa_switch *ds, int port, |
486 | struct ifreq *ifr); | 487 | struct ifreq *ifr); |
488 | bool (*port_txtstamp)(struct dsa_switch *ds, int port, | ||
489 | struct sk_buff *clone, unsigned int type); | ||
490 | bool (*port_rxtstamp)(struct dsa_switch *ds, int port, | ||
491 | struct sk_buff *skb, unsigned int type); | ||
487 | }; | 492 | }; |
488 | 493 | ||
489 | struct dsa_switch_driver { | 494 | struct dsa_switch_driver { |