@@ -21,6 +21,7 @@
#include <stddef.h>
#include <stdint.h>
#include "dpif.h"
+#include "netdev-offload-provider.h"
#include "openvswitch/types.h"
#include "dp-packet.h"
#include "packets.h"
@@ -47,6 +48,7 @@ struct dp_meter {
uint64_t used;
uint64_t packet_count;
uint64_t byte_count;
+ struct netdev_offload_meter *offload;
struct dp_meter_band bands[];
};
@@ -88,6 +88,16 @@ struct netdev_flow_api {
int (*init_flow_api)(struct netdev *);
};
+struct netdev_offload_meter_api {
+ void (*meter_destroy)(void *);
+ void (*meter_update)(void *, void *);
+};
+
+struct netdev_offload_meter {
+ void *priv_data;
+ struct netdev_offload_meter_api *meter_ops;
+};
+
int netdev_register_flow_api_provider(const struct netdev_flow_api *);
int netdev_unregister_flow_api_provider(const char *type);