mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 23:35:27 +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:
@@ -1355,9 +1355,9 @@ ofp_print_error_msg(struct ds *string, const struct ofp_header *oh)
|
||||
ds_put_format(string, " %s\n", ofperr_get_name(error));
|
||||
|
||||
if (error == OFPERR_OFPHFC_INCOMPATIBLE || error == OFPERR_OFPHFC_EPERM) {
|
||||
ds_put_printable(string, ofpbuf_data(&payload), ofpbuf_size(&payload));
|
||||
ds_put_printable(string, payload.data, payload.size);
|
||||
} else {
|
||||
s = ofp_to_string(ofpbuf_data(&payload), ofpbuf_size(&payload), 1);
|
||||
s = ofp_to_string(payload.data, payload.size, 1);
|
||||
ds_put_cstr(string, s);
|
||||
free(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user