Prev: [RFC][PATCH v4 12/18] To skip GRO if buffer is external.
Next: [RFC][PATCH v4 09/18] Don't do skb recycle, if device use external buffer.
From: xiaohui.xin on 25 Apr 2010 05:30 From: Xin Xiaohui <xiaohui.xin(a)intel.com> Signed-off-by: Xin Xiaohui <xiaohui.xin(a)intel.com> Signed-off-by: Zhao Yu <yzhao81(a)gmail.com> Reviewed-by: Jeff Dike <jdike(a)linux.intel.com> --- include/linux/netdevice.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 2f9a4f2..a1a2aaf 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1602,6 +1602,13 @@ extern void netdev_mp_port_detach(struct net_device *dev); int netdev_mp_port_prep(struct net_device *dev, struct mpassthru_port *port); +static int dev_is_mpassthru(struct net_device *dev) +{ + if (dev && dev->mp_port) + return 1; + return 0; +} + static inline void napi_free_frags(struct napi_struct *napi) { kfree_skb(napi->skb); -- 1.5.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |