IB/ipoib: Report SG feature regardless of HW UD CSUM capability
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 20 Jul 2016 08:30:06 +0000 (01:30 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 Aug 2016 01:03:32 +0000 (21:03 -0400)
commit5faba546952289a7306eae48df04e6159164c600
treee6b0ceec8fb7b2e435ac2af33c4760841f59f406
parent0c87b672098be368dec9a1ab8f1b897e78233ed5
IB/ipoib: Report SG feature regardless of HW UD CSUM capability

Decouple SG support from HW ability to do UD checksum.
This coupling is for historical reasons and removed with 'commit
ec5f06156423 ("net: Kill link between CSUM and SG features.")'

During driver load it is assumed that device does not supports SG. The
final decision is taken after creating UD QP based on device capability.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_verbs.c