projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b175ad
)
ofproto-dpif: Remove superfluous cast.
author
Ben Pfaff
<blp@nicira.com>
Fri, 13 Jul 2012 21:30:15 +0000
(14:30 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 3 Aug 2012 20:33:06 +0000
(13:33 -0700)
'packet' is already a struct ofpbuf *.
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-dpif.c
b/ofproto/ofproto-dpif.c
index 3cc54cff59f4dbd641e1ee74bd363cfe31903ac0..c50353ede4b53af19704907c0bc5b6d707fdd559 100644
(file)
--- a/
ofproto/ofproto-dpif.c
+++ b/
ofproto/ofproto-dpif.c
@@
-4732,7
+4732,7
@@
send_packet(const struct ofport_dpif *ofport, struct ofpbuf *packet)
struct flow flow;
int error;
- flow_extract(
(struct ofpbuf *)
packet, 0, 0, 0, &flow);
+ flow_extract(packet, 0, 0, 0, &flow);
odp_port = vsp_realdev_to_vlandev(ofproto, ofport->odp_port,
flow.vlan_tci);
if (odp_port != ofport->odp_port) {