mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dp-packet: Remove 'frame' member.
In 'struct ofpbuf' the 'frame' pointer was used to parse different kinds of data (Ethernet, OpenFlow, Netlink attributes). For Ethernet packets the 'frame' pointer was supposed to have the same value as the 'data' pointer. Since 'struct dp_packet' is only used for Ethernet packets, there's no need for a separate 'frame' pointer: we can use the 'data' pointer instead. Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
committed by
Pravin B Shelar
parent
8613db65be
commit
82eb5b0aba
@@ -449,7 +449,7 @@ miniflow_extract(struct dp_packet *packet, struct miniflow *dst)
|
||||
|
||||
/* Initialize packet's layer pointer and offsets. */
|
||||
l2 = data;
|
||||
dp_packet_set_frame(packet, data);
|
||||
dp_packet_reset_offsets(packet);
|
||||
|
||||
/* Must have full Ethernet header to proceed. */
|
||||
if (OVS_UNLIKELY(size < sizeof(struct eth_header))) {
|
||||
|
Reference in New Issue
Block a user