diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-06-16 10:59:43 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-07-06 09:07:23 -0700 |
| commit | 53a4218dca89c70bf1e3230827b00af54386c8ff (patch) | |
| tree | dd4bbdeb2dd413e1b889bb0c8834add011d4a088 /lib/dpif.h | |
| parent | 335562c0b9b190f61c0cc457a4098c2688561387 (diff) | |
| download | openvswitch-53a4218dca89c70bf1e3230827b00af54386c8ff.tar.gz | |
dpif: New function dpif_get_netflow_ids().
The 'minor' member of struct dpif is used for two different purposes:
for printing in log messages and for encapsulating in NetFlow messages.
The needs in each case are different, so we should break up these uses.
This commit does half of that, by introducing a new function to retrieve
NetFlow ids and using it where appropriate.
Diffstat (limited to 'lib/dpif.h')
| -rw-r--r-- | lib/dpif.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dpif.h b/lib/dpif.h index a0e603114..52e8075b5 100644 --- a/lib/dpif.h +++ b/lib/dpif.h @@ -89,6 +89,8 @@ dpif_id(const struct dpif *dpif) { return dpif->minor; } +void dpif_get_netflow_ids(const struct dpif *, + uint8_t *engine_type, uint8_t *engine_id); struct dpifmon; |
