diff options
author | William Tu <u9012063@gmail.com> | 2016-06-29 14:38:02 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-07-03 11:38:17 -0700 |
commit | 1356dbd12125200c319a7d420660e72293baa8ec (patch) | |
tree | 75decfb326e6ff9857cbae7b092a78aeb09bb490 /ofproto/ofproto-dpif-mirror.h | |
parent | ef9c432c22a777a22097428253a6d44d99824be7 (diff) | |
download | openvswitch-1356dbd12125200c319a7d420660e72293baa8ec.tar.gz |
ofproto-dpif-mirror: Add mirror snaplen support.
This patch adds a 'snaplen' config for mirroring table. A mirrored packet
with size larger than snaplen bytes will be truncated in datapath before
sending to the mirror output port.
Tested-at: https://travis-ci.org/williamtu/ovs-travis/builds/141186839
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif-mirror.h')
-rw-r--r-- | ofproto/ofproto-dpif-mirror.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/ofproto-dpif-mirror.h b/ofproto/ofproto-dpif-mirror.h index 6e0dc88cb..b00536ac7 100644 --- a/ofproto/ofproto-dpif-mirror.h +++ b/ofproto/ofproto-dpif-mirror.h @@ -42,7 +42,7 @@ int mirror_set(struct mbridge *, void *aux, const char *name, struct ofbundle **srcs, size_t n_srcs, struct ofbundle **dsts, size_t n_dsts, unsigned long *src_vlans, struct ofbundle *out_bundle, - uint16_t out_vlan); + uint16_t snaplen, uint16_t out_vlan); void mirror_destroy(struct mbridge *, void *aux); int mirror_get_stats(struct mbridge *, void *aux, uint64_t *packets, uint64_t *bytes); @@ -50,6 +50,6 @@ void mirror_update_stats(struct mbridge*, mirror_mask_t, uint64_t packets, uint64_t bytes); bool mirror_get(struct mbridge *, int index, const unsigned long **vlans, mirror_mask_t *dup_mirrors, struct ofbundle **out, - int *out_vlan); + int *snaplen, int *out_vlan); #endif /* ofproto-dpif-mirror.h */ |