mirror of
https://github.com/openvswitch/ovs
synced 2025-10-15 14:17:18 +00:00
datapath: Drop allocation of memory for ODP_PACKET_ATTR_TYPE.
When doing an upcall we allocate memory for ODP_PACKET_ATTR_TYPE. However, ODP_PACKET_ATTR_TYPE does not exist - the type is specified by the command. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -484,7 +484,6 @@ static int queue_control_packets(struct datapath *dp, struct sk_buff *skb,
|
||||
skb->next = NULL;
|
||||
|
||||
len = sizeof(struct odp_header);
|
||||
len += nla_total_size(4); /* ODP_PACKET_ATTR_TYPE. */
|
||||
len += nla_total_size(skb->len);
|
||||
len += nla_total_size(FLOW_BUFSIZE);
|
||||
if (upcall_info->userdata)
|
||||
|
Reference in New Issue
Block a user