X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fvconn-provider.h;h=1c8b86da60a83e1750677d0c8e315ab4e055471f;hb=4e8e4213a815a30216e855a805a8bcd5b8c5a886;hp=f245e4c1e853b3cce1a8784f811e82382ce12892;hpb=85ab0a021523e51435539af0e6a138c73c9846a2;p=sliver-openvswitch.git diff --git a/lib/vconn-provider.h b/lib/vconn-provider.h index f245e4c1e..1c8b86da6 100644 --- a/lib/vconn-provider.h +++ b/lib/vconn-provider.h @@ -108,6 +108,18 @@ struct vconn_class { * accepted for transmission, it should return EAGAIN. */ int (*send)(struct vconn *vconn, struct ofpbuf *msg); + /* Allows 'vconn' to perform maintenance activities, such as flushing + * output buffers. + * + * May be null if 'vconn' doesn't have anything to do here. */ + void (*run)(struct vconn *vconn); + + /* Arranges for the poll loop to wake up when 'vconn' needs to perform + * maintenance activities. + * + * May be null if 'vconn' doesn't have anything to do here. */ + void (*run_wait)(struct vconn *vconn); + /* Arranges for the poll loop to wake up when 'vconn' is ready to take an * action of the given 'type'. */ void (*wait)(struct vconn *vconn, enum vconn_wait_type type);