Message ID | 72e847e65da4e1b51adb288f5768e67eb8a3675f.1285853725.git.xiaohui.xin@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 27f5024..9ed4fa2 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1611,6 +1611,11 @@ extern gro_result_t napi_gro_frags(struct napi_struct *napi); extern int netdev_mp_port_prep(struct net_device *dev, struct mp_port *port); +static inline bool dev_is_mpassthru(struct net_device *dev) +{ + return dev && dev->mp_port; +} + static inline void napi_free_frags(struct napi_struct *napi) { kfree_skb(napi->skb);