提交 c362beb0 编写于 作者: V Vladimir Oltean 提交者: David S. Miller

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.
Signed-off-by: NVladimir Oltean <olteanv@gmail.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: NVivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 97a69a0d
...@@ -210,6 +210,12 @@ struct dsa_port { ...@@ -210,6 +210,12 @@ struct dsa_port {
struct work_struct xmit_work; struct work_struct xmit_work;
struct sk_buff_head xmit_queue; struct sk_buff_head xmit_queue;
/*
* Give the switch driver somewhere to hang its per-port private data
* structures (accessible from the tagger).
*/
void *priv;
/* /*
* Original copy of the master netdev ethtool_ops * Original copy of the master netdev ethtool_ops
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册