Skip to content

Commit

Permalink
net: fix xdp_rxq_info build issue when CONFIG_SYSFS is not set
Browse files Browse the repository at this point in the history
The commit e817f85 ("xdp: generic XDP handling of xdp_rxq_info")
removed some ifdef CONFIG_SYSFS in net/core/dev.c, but forgot to
remove the corresponding ifdef's in include/linux/netdevice.h.

Fixes: e817f85 ("xdp: generic XDP handling of xdp_rxq_info")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jesper Dangaard Brouer authored and David S. Miller committed Jan 10, 2018
1 parent fee2d54 commit fd3ba21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/linux/netdevice.h
Original file line number Diff line number Diff line change
@@ -1805,12 +1805,9 @@ struct net_device {
/* Interface address info used in eth_type_trans() */
unsigned char *dev_addr;

#ifdef CONFIG_SYSFS
struct netdev_rx_queue *_rx;

unsigned int num_rx_queues;
unsigned int real_num_rx_queues;
#endif

struct bpf_prog __rcu *xdp_prog;
unsigned long gro_flush_timeout;

0 comments on commit fd3ba21

Please sign in to comment.