summaryrefslogtreecommitdiffstats
path: root/include/linux/if_macvlan.h
diff options
context:
space:
mode:
authordingtianhong2014-05-30 10:00:56 +0200
committerDavid S. Miller2014-06-03 01:05:24 +0200
commit688cea83f4396fa98b77a126ed278b89daccccdc (patch)
treeae3349b41460cf5cfb9fe1a09ae1e613e619171f /include/linux/if_macvlan.h
parentMerge branch 'cdc_ncm' (diff)
downloadkernel-qcow2-linux-688cea83f4396fa98b77a126ed278b89daccccdc.tar.gz
kernel-qcow2-linux-688cea83f4396fa98b77a126ed278b89daccccdc.tar.xz
kernel-qcow2-linux-688cea83f4396fa98b77a126ed278b89daccccdc.zip
macvlan: add netpoll support
Add netpoll support to macvlan devices. Based on the netpoll support in the 802.1q vlan code. Tested and macvlan could work well with netconsole. Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_macvlan.h')
-rw-r--r--include/linux/if_macvlan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h
index a9a53b12397b..6b2c7cf352a5 100644
--- a/include/linux/if_macvlan.h
+++ b/include/linux/if_macvlan.h
@@ -57,6 +57,9 @@ struct macvlan_dev {
netdev_features_t tap_features;
int minor;
int nest_level;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ struct netpoll *netpoll;
+#endif
};
static inline void macvlan_count_rx(const struct macvlan_dev *vlan,