提交 e3dbc46c 编写于 作者: C Choi, Jong-Hwan 提交者: David S. Miller

net: Kobj and queues_kset should be used when CONFIG_XPS is enabled

Kobj and queues_kset are used with CONFIG_XPS=y.
Signed-off-by: NChoi, Jong-Hwan <jhbird.choi@samsung.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ebbf9295
...@@ -530,7 +530,7 @@ struct netdev_queue { ...@@ -530,7 +530,7 @@ struct netdev_queue {
struct Qdisc *qdisc; struct Qdisc *qdisc;
unsigned long state; unsigned long state;
struct Qdisc *qdisc_sleeping; struct Qdisc *qdisc_sleeping;
#ifdef CONFIG_RPS #if defined(CONFIG_RPS) || defined(CONFIG_XPS)
struct kobject kobj; struct kobject kobj;
#endif #endif
#if defined(CONFIG_XPS) && defined(CONFIG_NUMA) #if defined(CONFIG_XPS) && defined(CONFIG_NUMA)
...@@ -1179,7 +1179,7 @@ struct net_device { ...@@ -1179,7 +1179,7 @@ struct net_device {
unsigned char broadcast[MAX_ADDR_LEN]; /* hw bcast add */ unsigned char broadcast[MAX_ADDR_LEN]; /* hw bcast add */
#ifdef CONFIG_RPS #if defined(CONFIG_RPS) || defined(CONFIG_XPS)
struct kset *queues_kset; struct kset *queues_kset;
struct netdev_rx_queue *_rx; struct netdev_rx_queue *_rx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册