On Wed, Mar 27, 2019 at 05:50:47AM -0400, Zhu Yanjun wrote: > In the function rxe_init_packet, based on av->network_type, > skb->protocol is set to ipv4 or ipv6. The functions rxe_prepare > and rxe_send are called after the functin rxe_init_packet. > So in these functions, av->network_type can be replaced with > skb->protocol. > The functions are in the xmit fast path. So with skb->protocol, > the performance will be better. > > Signed-off-by: Zhu Yanjun <yanjun.zhu@xxxxxxxxxx> > --- > V0->V1: fix the conflicts with other patches. This patch is based on rdma.git > --- > drivers/infiniband/sw/rxe/rxe_net.c | 28 ++++++++++++---------------- > 1 file changed, 12 insertions(+), 16 deletions(-) Applied to for-next, thanks Jason