RDMA/irdma: Use helper function to set GUIDs
authorKamal Heib <kamalheib1@gmail.com>
Sun, 7 Nov 2021 21:22:27 +0000 (23:22 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 16 Nov 2021 17:54:24 +0000 (13:54 -0400)
commitfc9d19e18aaac489e6ea86fd5bb59d50d151515b
treeab2c00e7e05e75dd885d54fcac4e60bd86e1a88d
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
RDMA/irdma: Use helper function to set GUIDs

Use the addrconf_addr_eui48() helper function to set the GUIDs for both
RoCE and iWARP modes, Also make sure the GUIDs are valid EUI-64
identifiers.

Link: https://lore.kernel.org/r/20211107212227.44610-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/verbs.c