X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=d9a278e0bd7974b64695a339e98356df0e9a45d1;hb=refs%2Fheads%2Forig-parallel;hp=844083d8bf3a6ea07c60ee400499efe1d4750f3b;hpb=d59051362fa8ac4369f1be69ac942a52c9a424b9;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 844083d8b..d9a278e0b 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -995,6 +995,7 @@ ofproto_destroy(struct ofproto *p) int ofproto_run(struct ofproto *p) { + /* handle protocol messages coming from the datapath */ int error = ofproto_run1(p); if (!error) { error = ofproto_run2(p, false); @@ -1056,6 +1057,11 @@ add_snooper(struct ofproto *ofproto, struct vconn *vconn) } } +/* + * Calls the netdevice dpif_netdev_recv() callback, + * that read a protocol packet from the dpif queue + * and handle the message + */ int ofproto_run1(struct ofproto *p) { @@ -1278,6 +1284,7 @@ ofproto_send_packet(struct ofproto *p, const flow_t *flow, /* XXX Should we translate the dpif_execute() errno value into an OpenFlow * error code? */ + fprintf(stderr, "OFPROTO EXECUTE\n"); dpif_execute(p->dpif, flow->in_port, odp_actions.actions, odp_actions.n_actions, packet); return 0;