git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e6179
)
In userspace switch, don't truncate packets to 0 bytes with max_len of 0.
author
Ben Pfaff
<blp@nicira.com>
Thu, 4 Sep 2008 20:44:29 +0000
(13:44 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 4 Sep 2008 20:53:27 +0000
(13:53 -0700)
From partner.
switch/datapath.c
patch
|
blob
|
history
diff --git
a/switch/datapath.c
b/switch/datapath.c
index
1e71411
..
5eeefa7
100644
(file)
--- a/
switch/datapath.c
+++ b/
switch/datapath.c
@@
-636,7
+636,7
@@
dp_output_control(struct datapath *dp, struct ofpbuf *buffer, int in_port,
buffer_id = save_buffer(buffer);
total_len = buffer->size;
- if (buffer_id != UINT32_MAX && buffer->size > max_len) {
+ if (buffer_id != UINT32_MAX &&
max_len &&
buffer->size > max_len) {
buffer->size = max_len;
}