IB/rxe: optimize mcast recv process
authorZhu Yanjun <yanjun.zhu@oracle.com>
Wed, 21 Mar 2018 08:08:37 +0000 (04:08 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 29 Mar 2018 19:25:22 +0000 (13:25 -0600)
commit99dae690255e90f5cbefcc76ad92b35cdf87d14d
tree840e12300389008def05b4c4d8b703b89e7c8a56
parenta343e3f89e365a598ab4061fd2bc9ed5daf1905d
IB/rxe: optimize mcast recv process

In mcast recv process, the function skb_clone is used. In fact,
the refcount can be increased to replace cloning a new skb since
the original skb will not be modified before it is freed.

This can make the performance better and save the memory.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_recv.c