aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_icrc.c
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@oracle.com>2019-03-27 05:50:47 -0400
committerJason Gunthorpe <jgg@mellanox.com>2019-03-27 16:23:09 -0300
commit08304d714638dff08bf001e92ce56411e2e902c7 (patch)
tree921480232a4a2c518285c811d0ecc1c6ec97986b /drivers/infiniband/sw/rxe/rxe_icrc.c
parentBPF: Add sample code for new ib_umad tracepoint (diff)
downloadlinux-dev-08304d714638dff08bf001e92ce56411e2e902c7.tar.xz
linux-dev-08304d714638dff08bf001e92ce56411e2e902c7.zip
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>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_icrc.c')
0 files changed, 0 insertions, 0 deletions