Skip to content

Commit

Permalink
linux/efa: Explicitly set P2P support to device
Browse files Browse the repository at this point in the history
Set P2P to 0 in host info sent to the device in case it's not enabled.

Reviewed-by: Daniel Kranzdorf <[email protected]>
Signed-off-by: Michael Margolin <[email protected]>
  • Loading branch information
mrgolin committed Feb 15, 2024
1 parent 889c1c1 commit d483166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/linux/efa/src/efa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ static void efa_set_host_info(struct efa_dev *dev)
EFA_COMMON_SPEC_VERSION_MINOR);
#ifdef HAVE_EFA_P2P
EFA_SET(&hinf->flags, EFA_ADMIN_HOST_INFO_GDR, 1);
#else
EFA_SET(&hinf->flags, EFA_ADMIN_HOST_INFO_GDR, 0);
#endif

efa_com_set_feature_ex(&dev->edev, &resp, &cmd, EFA_ADMIN_HOST_INFO,
Expand Down

0 comments on commit d483166

Please sign in to comment.