summary refs log tree commit diff
path: root/include/soc
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2019-11-27 15:27:57 +0800
committerDavid S. Miller <davem@davemloft.net>2019-11-27 10:53:37 -0800
commitb049da1338082714262034a8c8b87022623dc106 (patch)
treeaba3f3692d0cc33761d3db91cabc9d09d5b28911 /include/soc
parentfc62c0948986b7aa6b2871a450a4469e35c5f9bc (diff)
downloadlinux-b049da1338082714262034a8c8b87022623dc106.tar.gz
net: mscc: ocelot: use skb queue instead of skbs list
Convert to use skb queue instead of the list of skbs.
The skb queue could provide protection with lock.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/mscc/ocelot.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h
index e1108a5f4f17..64cbbbe74a36 100644
--- a/include/soc/mscc/ocelot.h
+++ b/include/soc/mscc/ocelot.h
@@ -406,13 +406,6 @@ struct ocelot_ops {
 	int (*reset)(struct ocelot *ocelot);
 };
 
-struct ocelot_skb {
-	struct list_head head;
-	struct sk_buff *skb;
-	u8 id;
-};
-
-
 struct ocelot_port {
 	struct ocelot			*ocelot;
 
@@ -425,7 +418,7 @@ struct ocelot_port {
 	u16				vid;
 
 	u8				ptp_cmd;
-	struct list_head		skbs;
+	struct sk_buff_head		tx_skbs;
 	u8				ts_id;
 };