Skip to content

Commit

Permalink
net: Kobj and queues_kset should be used when CONFIG_XPS is enabled
Browse files Browse the repository at this point in the history
Kobj and queues_kset are used with CONFIG_XPS=y.

Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Choi, Jong-Hwan authored and David S. Miller committed Jul 22, 2011
1 parent ebbf929 commit e3dbc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ struct netdev_queue {
struct Qdisc *qdisc;
unsigned long state;
struct Qdisc *qdisc_sleeping;
#ifdef CONFIG_RPS
#if defined(CONFIG_RPS) || defined(CONFIG_XPS)
struct kobject kobj;
#endif
#if defined(CONFIG_XPS) && defined(CONFIG_NUMA)
Expand Down Expand Up @@ -1179,7 +1179,7 @@ struct net_device {

unsigned char broadcast[MAX_ADDR_LEN]; /* hw bcast add */

#ifdef CONFIG_RPS
#if defined(CONFIG_RPS) || defined(CONFIG_XPS)
struct kset *queues_kset;

struct netdev_rx_queue *_rx;
Expand Down

0 comments on commit e3dbc46

Please sign in to comment.