mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +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:
@@ -1140,8 +1140,7 @@ eth_from_packet_or_flow(const char *s)
|
||||
}
|
||||
|
||||
/* Convert odp_key to flow. */
|
||||
fitness = odp_flow_key_to_flow(ofpbuf_data(&odp_key),
|
||||
ofpbuf_size(&odp_key), &flow);
|
||||
fitness = odp_flow_key_to_flow(odp_key.data, odp_key.size, &flow);
|
||||
if (fitness == ODP_FIT_ERROR) {
|
||||
ofpbuf_uninit(&odp_key);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user