Skip to content

Commit 88ca59d

Browse files
Girish Moodalbaildavem330
authored andcommitted
macvlan: remove unused fields in struct macvlan_dev
commit 635b8c8 ("tap: Renaming tap related APIs, data structures, macros") captured all the tap related fields into a new struct tap_dev. However, it failed to remove those fields from struct macvlan_dev. Those fields are currently unused and must be removed. While there I moved the comment for MAX_TAP_QUEUES to the right place. Fixes: 635b8c8 (tap: Renaming tap related APIs, data structures, macros) Signed-off-by: Girish Moodalbail <girish.moodalbail@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1769af4 commit 88ca59d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

include/linux/if_macvlan.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
#include <linux/u64_stats_sync.h>
1111

1212
struct macvlan_port;
13-
struct macvtap_queue;
14-
15-
/*
16-
* Maximum times a macvtap device can be opened. This can be used to
17-
* configure the number of receive queue, e.g. for multiqueue virtio.
18-
*/
19-
#define MAX_TAP_QUEUES 256
2013

2114
#define MACVLAN_MC_FILTER_BITS 8
2215
#define MACVLAN_MC_FILTER_SZ (1 << MACVLAN_MC_FILTER_BITS)
@@ -35,14 +28,6 @@ struct macvlan_dev {
3528
netdev_features_t set_features;
3629
enum macvlan_mode mode;
3730
u16 flags;
38-
/* This array tracks active taps. */
39-
struct tap_queue __rcu *taps[MAX_TAP_QUEUES];
40-
/* This list tracks all taps (both enabled and disabled) */
41-
struct list_head queue_list;
42-
int numvtaps;
43-
int numqueues;
44-
netdev_features_t tap_features;
45-
int minor;
4631
int nest_level;
4732
#ifdef CONFIG_NET_POLL_CONTROLLER
4833
struct netpoll *netpoll;

include/linux/if_tap.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ static inline struct skb_array *tap_get_skb_array(struct file *f)
2222
#include <net/sock.h>
2323
#include <linux/skb_array.h>
2424

25+
/*
26+
* Maximum times a tap device can be opened. This can be used to
27+
* configure the number of receive queue, e.g. for multiqueue virtio.
28+
*/
2529
#define MAX_TAP_QUEUES 256
2630

2731
struct tap_queue;

0 commit comments

Comments
 (0)