RDMA/efa: Fix setting of wrong bit in get/set_feature commands
authorGal Pressman <galpress@amazon.com>
Tue, 12 May 2020 15:22:03 +0000 (18:22 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 May 2020 13:05:00 +0000 (10:05 -0300)
commitcc8a635e24acf2793605f243c913c51b8c3702ab
tree6863fb1b83c406140b24b8bc8914034d40ec121c
parent819f7427bafd494ef7ca4942ec6322db20722d7b
RDMA/efa: Fix setting of wrong bit in get/set_feature commands

When using a control buffer the ctrl_data bit should be set in order to
indicate the control buffer address is valid, not ctrl_data_indirect
which is used when the control buffer itself is indirect.

Fixes: e9c6c5373088 ("RDMA/efa: Add common command handlers")
Link: https://lore.kernel.org/r/20200512152204.93091-2-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/efa/efa_com_cmd.c