You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been successfully using nanomsg instead of virtual interfaces to run simple switch. An example is this PR: p4lang/p4c#3951
However, there is one problem. If simple_switch crashes, the nn framework seems to get stuck at this point:
It tries to remove the port but does not get a response back, presumably because the socket is blocking indefinitely? Is there a straightforward way to fix this?
The text was updated successfully, but these errors were encountered:
The nanomsg stuff we use doesn't seem to be actively maintained any more. There are new implementations (both for the core library and the Python module). I don't know if using these would help.
I could think of the following workaround (not guaranteed to work): force delete the socket files after you detect that simple_switch_grpc has crashed. I assume this is an unplanned crash (e.g. segfault), and not a signal we could trap in bmv2 to close the socket before exiting.
I have been successfully using nanomsg instead of virtual interfaces to run simple switch. An example is this PR:
p4lang/p4c#3951
However, there is one problem. If
simple_switch
crashes, the nn framework seems to get stuck at this point:ptf/src/ptf/dataplane.py
Line 384 in 7494366
It tries to remove the port but does not get a response back, presumably because the socket is blocking indefinitely? Is there a straightforward way to fix this?
The text was updated successfully, but these errors were encountered: