mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
dp-packet: Remove 'list' member.
The 'list' member is only used (two users) in the slow path. This commit removes it to reduce the struct size 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
401aa90e33
commit
8613db65be
@@ -31,7 +31,6 @@ dp_packet_init__(struct dp_packet *b, size_t allocated, enum dp_packet_source so
|
||||
b->l2_pad_size = 0;
|
||||
b->l2_5_ofs = b->l3_ofs = b->l4_ofs = UINT16_MAX;
|
||||
b->md = PKT_METADATA_INITIALIZER(0);
|
||||
list_poison(&b->list_node);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -460,18 +459,6 @@ dp_packet_to_string(const struct dp_packet *b, size_t maxbytes)
|
||||
return ds_cstr(&s);
|
||||
}
|
||||
|
||||
/* Removes each of the "struct dp_packet"s on 'list' from the list and frees
|
||||
* them. */
|
||||
void
|
||||
dp_packet_list_delete(struct ovs_list *list)
|
||||
{
|
||||
struct dp_packet *b;
|
||||
|
||||
LIST_FOR_EACH_POP (b, list_node, list) {
|
||||
dp_packet_delete(b);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
dp_packet_adjust_layer_offset(uint16_t *offset, int increment)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user