On Wed, Mar 21, 2018 at 04:08:37AM -0400, Zhu Yanjun wrote: > 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@xxxxxxxxxx> > CC: Junxiao Bi <junxiao.bi@xxxxxxxxxx> > Signed-off-by: Zhu Yanjun <yanjun.zhu@xxxxxxxxxx> > Reviewed-by: Yuval Shaia <yuval.shaia@xxxxxxxxxx> > --- > V3->V4: Following Yuval's advice, change the header. > V2->v3: Following Yuval's advice, the temp variable is removed. > V1->V2: Following Yuval's advice, skb test is removed. > --- > drivers/infiniband/sw/rxe/rxe_recv.c | 14 ++++---------- > 1 file changed, 4 insertions(+), 10 deletions(-) Applied to for-next with Yuval's review Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html