diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2019-11-27 15:27:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-27 10:53:37 -0800 |
commit | b049da1338082714262034a8c8b87022623dc106 (patch) | |
tree | aba3f3692d0cc33761d3db91cabc9d09d5b28911 /include | |
parent | fc62c0948986b7aa6b2871a450a4469e35c5f9bc (diff) | |
download | linux-stable-b049da1338082714262034a8c8b87022623dc106.tar.gz linux-stable-b049da1338082714262034a8c8b87022623dc106.tar.bz2 linux-stable-b049da1338082714262034a8c8b87022623dc106.zip |
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')
-rw-r--r-- | include/soc/mscc/ocelot.h | 9 |
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; }; |