X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdpif-provider.h;h=eca005981c5c05888250e40c5a2e1536b3d8888a;hb=1ba530f4b2cd5476a224dbbf87a3089a831a24b6;hp=f138104fa7d38fa832976cace661060c99e42eb3;hpb=ea7bd5973fb426f3a6ea66b0953c6000980e77ec;p=sliver-openvswitch.git diff --git a/lib/dpif-provider.h b/lib/dpif-provider.h index f138104fa..eca005981 100644 --- a/lib/dpif-provider.h +++ b/lib/dpif-provider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -348,6 +348,10 @@ struct dpif_class { /* Arranges for the poll loop to wake up when 'dpif' has a message queued * to be received with the recv member function. */ void (*recv_wait)(struct dpif *dpif); + + /* Throws away any queued upcalls that 'dpif' currently has ready to + * return. */ + void (*recv_purge)(struct dpif *dpif); }; extern const struct dpif_class dpif_linux_class;