net: rds: use memset to optimize the recv
authorZhu Yanjun <yanjun.zhu@oracle.com>
Mon, 17 Sep 2018 02:49:30 +0000 (22:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:19:51 +0000 (08:19 -0700)
commit1635bb548f846804af3054872fbd1395783ac03e
tree06a5926a65d91b8f0a2a4eef0d621f229ae47d64
parent0185e2e69f8e640defb77380b6b0d054c2ec12e4
net: rds: use memset to optimize the recv

The function rds_inc_init is in recv process. To use memset can optimize
the function rds_inc_init.
The test result:

     Before:
     1) + 24.950 us   |        rds_inc_init [rds]();
     After:
     1) + 10.990 us   |        rds_inc_init [rds]();

Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/recv.c