]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc00c1dffb96432312c6b6c9a5ef7aa88295a260b
tree921480232a4a2c518285c811d0ecc1c6ec97986b
parentbbb421b8131ea909b57c2d1e3895b37bd37cda54
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