lkml.org 
[lkml]   [2010]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v11 05/17] Add a function to indicate if device use external buffer.
    Date
    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 5f192de..23d6ec0 100644
    --- a/include/linux/netdevice.h
    +++ b/include/linux/netdevice.h
    @@ -1602,6 +1602,11 @@ extern gro_result_t napi_gro_frags(struct napi_struct *napi);
    extern int netdev_mp_port_prep(struct net_device *dev,
    struct mpassthru_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


    \
     
     \ /
      Last update: 2010-09-27 20:09    [W:5.898 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site