rfaucett / libfabric

Open Fabric Interfaces
Other
0 stars 0 forks source link

usdf_cm_dgram_shutdown #9

Closed rfaucett closed 9 years ago

rfaucett commented 9 years ago

figure out what to do with dgram shutdown

xuywang commented 9 years ago

Rough idea below.

Check if ep is connected (eq->ep_dest != NULL). If not return FI_EPNOTCONNECT

If (flags & FI_WRITE)
   ep->ep_fid.msg.send = usdf_dgram_send_shutdown (returns error when called)
                             sendv
if (flags & FI_READ)
   ep->ep_fid.msg.recv = usdf_dgram_recv_shutdown (returns error when called)
                             recv

Don't think it's necessary to send msg to remote peer to notify shutdown event.

rfaucett commented 9 years ago

we can't overwrite the fn calls like that because they live in a shared structure

rfaucett commented 9 years ago

shutdown now no longer applies to dgram