]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
IB/rxe: Fix sending out loopback packet on netdev interface.
authorParav Pandit <pandit.parav@gmail.com>
Wed, 28 Sep 2016 20:24:42 +0000 (20:24 +0000)
committerDoug Ledford <dledford@redhat.com>
Thu, 6 Oct 2016 17:50:04 +0000 (13:50 -0400)
commitffae955d49e6cff28589d6e7388bb9275f9ce2d1
tree505f762e5e0c7edb32f461fac5cac6a75b4905a6
parent063af59597492d31c44e549d6c773b6485f7dc53
IB/rxe: Fix sending out loopback packet on netdev interface.

Both prepare4 and prepare6 sets loopback mask in pkt_info structure
instance of skb.  The xmit_packet and other requester side functions
use a pkt_info struct from the stack without the proper mask.  This
results in sending out the packet to the actual netdev device and
loopback functionality is broken.

Modify prepare() to pass its correctly marked pkt_info struct to
prepare4() and prepare6() instead of them using SKB_TO_PKT(skb) and
getting an incorrectly set mask.

Verified with perftest applications.

Signed-off-by: Parav Pandit <pandit.parav@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_net.c