diff options
author | dingtianhong <dingtianhong@huawei.com> | 2014-05-30 04:00:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-02 19:05:24 -0400 |
commit | 688cea83f4396fa98b77a126ed278b89daccccdc (patch) | |
tree | ae3349b41460cf5cfb9fe1a09ae1e613e619171f /include/linux/if_macvlan.h | |
parent | 7d507ac28ab9a17f28fd8c8be82f9255a1f72834 (diff) |
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.h | 3 |
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 { | |||
57 | netdev_features_t tap_features; | 57 | netdev_features_t tap_features; |
58 | int minor; | 58 | int minor; |
59 | int nest_level; | 59 | int nest_level; |
60 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
61 | struct netpoll *netpoll; | ||
62 | #endif | ||
60 | }; | 63 | }; |
61 | 64 | ||
62 | static inline void macvlan_count_rx(const struct macvlan_dev *vlan, | 65 | static inline void macvlan_count_rx(const struct macvlan_dev *vlan, |