Messages in this thread Patch in this message | | | From | xiaohui.xin@intel ... | Subject | [PATCH v15 05/17] Add a function to indicate if device use external buffer. | Date | Tue, 9 Nov 2010 17:03:10 +0800 |
| |
From: Xin Xiaohui <xiaohui.xin@intel.com>
Signed-off-by: Xin Xiaohui <xiaohui.xin@intel.com> Signed-off-by: Zhao Yu <yzhao81new@gmail.com> Reviewed-by: Jeff Dike <jdike@linux.intel.com> --- include/linux/netdevice.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 8dcf6de..f91d9bb 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1739,6 +1739,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); -- 1.7.3
| |