if_macvlan.h (f9cd49033b349b8be3bb1f01b39eed837853d880) if_macvlan.h (cd431e738509e74726055390c9e5e81e8e7e03ec)
1#ifndef _LINUX_IF_MACVLAN_H
2#define _LINUX_IF_MACVLAN_H
3
4#include <linux/if_link.h>
5#include <linux/list.h>
6#include <linux/netdevice.h>
7#include <linux/netlink.h>
8#include <net/netlink.h>

--- 38 unchanged lines hidden (view full) ---

47};
48
49/*
50 * Maximum times a macvtap device can be opened. This can be used to
51 * configure the number of receive queue, e.g. for multiqueue virtio.
52 */
53#define MAX_MACVTAP_QUEUES (NR_CPUS < 16 ? NR_CPUS : 16)
54
1#ifndef _LINUX_IF_MACVLAN_H
2#define _LINUX_IF_MACVLAN_H
3
4#include <linux/if_link.h>
5#include <linux/list.h>
6#include <linux/netdevice.h>
7#include <linux/netlink.h>
8#include <net/netlink.h>

--- 38 unchanged lines hidden (view full) ---

47};
48
49/*
50 * Maximum times a macvtap device can be opened. This can be used to
51 * configure the number of receive queue, e.g. for multiqueue virtio.
52 */
53#define MAX_MACVTAP_QUEUES (NR_CPUS < 16 ? NR_CPUS : 16)
54
55#define MACVLAN_MC_FILTER_BITS 8
56#define MACVLAN_MC_FILTER_SZ (1 << MACVLAN_MC_FILTER_BITS)
57
55struct macvlan_dev {
56 struct net_device *dev;
57 struct list_head list;
58 struct hlist_node hlist;
59 struct macvlan_port *port;
60 struct net_device *lowerdev;
61 struct macvlan_pcpu_stats __percpu *pcpu_stats;
58struct macvlan_dev {
59 struct net_device *dev;
60 struct list_head list;
61 struct hlist_node hlist;
62 struct macvlan_port *port;
63 struct net_device *lowerdev;
64 struct macvlan_pcpu_stats __percpu *pcpu_stats;
65
66 DECLARE_BITMAP(mc_filter, MACVLAN_MC_FILTER_SZ);
67
62 enum macvlan_mode mode;
63 u16 flags;
64 int (*receive)(struct sk_buff *skb);
65 int (*forward)(struct net_device *dev, struct sk_buff *skb);
66 struct macvtap_queue *taps[MAX_MACVTAP_QUEUES];
67 int numvtaps;
68 int minor;
69};

--- 40 unchanged lines hidden ---
68 enum macvlan_mode mode;
69 u16 flags;
70 int (*receive)(struct sk_buff *skb);
71 int (*forward)(struct net_device *dev, struct sk_buff *skb);
72 struct macvtap_queue *taps[MAX_MACVTAP_QUEUES];
73 int numvtaps;
74 int minor;
75};

--- 40 unchanged lines hidden ---