mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
ofpbuf: Simplify ofpbuf API.
ofpbuf was complicated due to its wide usage across all layers of OVS, Now we have introduced independent dp_packet which can be used for datapath packet, we can simplify ofpbuf. Following patch removes DPDK mbuf and access API of ofpbuf members. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -164,8 +164,8 @@ learn_execute(const struct ofpact_learn *learn, const struct flow *flow,
|
||||
}
|
||||
ofpact_pad(ofpacts);
|
||||
|
||||
fm->ofpacts = ofpbuf_data(ofpacts);
|
||||
fm->ofpacts_len = ofpbuf_size(ofpacts);
|
||||
fm->ofpacts = ofpacts->data;
|
||||
fm->ofpacts_len = ofpacts->size;
|
||||
}
|
||||
|
||||
/* Perform a bitwise-OR on 'wc''s fields that are relevant as sources in
|
||||
@@ -380,7 +380,7 @@ learn_parse__(char *orig, char *arg, struct ofpbuf *ofpacts)
|
||||
char *error;
|
||||
|
||||
spec = ofpbuf_put_zeros(ofpacts, sizeof *spec);
|
||||
learn = ofpacts->frame;
|
||||
learn = ofpacts->header;
|
||||
learn->n_specs++;
|
||||
|
||||
error = learn_parse_spec(orig, name, value, spec);
|
||||
|
Reference in New Issue
Block a user