History

net: dsa: Add a private structure pointer to dsa_port

This is supposed to share information between the driver and the tagger, or used by the tagger to keep some state. Its use is optional.

Vladimir Oltean committed 7 years ago

Commit c362beb1 parent 97a69a01 file · +6 −0Browse files

Unified · Split

include/net/dsa.h+6−0
@@ -210,6 +210,12 @@ struct dsa_port { · 209 unmodified lines
210210 struct work_struct xmit_work;
211211 struct sk_buff_head xmit_queue;
212212
213+ /*
214+ * Give the switch driver somewhere to hang its per-port private data
215+ * structures (accessible from the tagger).
216+ */
217+ void *priv;
218+
213219 /*
214220 * Original copy of the master netdev ethtool_ops
215221 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t