IB/rxe: Replace av->network_type with skb->protocol
authorZhu Yanjun <yanjun.zhu@oracle.com>
Wed, 27 Mar 2019 09:50:47 +0000 (05:50 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 Mar 2019 19:23:09 +0000 (16:23 -0300)
commit08304d714638dff08bf001e92ce56411e2e902c7
tree921480232a4a2c518285c811d0ecc1c6ec97986b
parent0ac01febd4753809d7d4d785f71cac2abde6b1c3
IB/rxe: Replace av->network_type with skb->protocol

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@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_net.c