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:
aca8556
)
learning-switch: Remove dead assignment.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 29 Mar 2011 19:37:49 +0000
(12:37 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Thu, 31 Mar 2011 23:40:43 +0000
(16:40 -0700)
lib/learning-switch.c
patch
|
blob
|
history
diff --git
a/lib/learning-switch.c
b/lib/learning-switch.c
index
97aaf9f
..
dc9af77
100644
(file)
--- a/
lib/learning-switch.c
+++ b/
lib/learning-switch.c
@@
-440,7
+440,6
@@
process_packet_in(struct lswitch *sw, struct rconn *rconn,
/* Send the packet, and possibly the whole flow, to the output port. */
if (sw->max_idle >= 0 && (!sw->ml || out_port != OFPP_FLOOD)) {
struct ofpbuf *buffer;
/* Send the packet, and possibly the whole flow, to the output port. */
if (sw->max_idle >= 0 && (!sw->ml || out_port != OFPP_FLOOD)) {
struct ofpbuf *buffer;
- struct ofp_flow_mod *ofm;
struct cls_rule rule;
/* The output port is known, or we always flood everything, so add a
struct cls_rule rule;
/* The output port is known, or we always flood everything, so add a
@@
-449,7
+448,6
@@
process_packet_in(struct lswitch *sw, struct rconn *rconn,
buffer = make_add_flow(&rule, ntohl(opi->buffer_id),
sw->max_idle, actions_len);
ofpbuf_put(buffer, actions, actions_len);
buffer = make_add_flow(&rule, ntohl(opi->buffer_id),
sw->max_idle, actions_len);
ofpbuf_put(buffer, actions, actions_len);
- ofm = buffer->data;
queue_tx(sw, rconn, buffer);
/* If the switch didn't buffer the packet, we need to send a copy. */
queue_tx(sw, rconn, buffer);
/* If the switch didn't buffer the packet, we need to send a copy. */