Skip to content
Permalink
Browse files

net/pkt: Remove useless _reserved attribute

This attribute was used when net_pkt where queued into a fifo. However,
since the cove to k_work queues (due to the introduction of TC), such
attribute has been totally useless.

Removing it gains 4 bytes in net_pkt structure.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
  • Loading branch information...
tbursztyka authored and jukkar committed May 23, 2019
1 parent 4bd654d commit 79672d1647d9d005cd295cb63b10f801ca97dea2
Showing with 0 additions and 3 deletions.
  1. +0 −3 include/net/net_pkt.h
@@ -58,9 +58,6 @@ struct net_pkt_cursor {
* net_pkt_clone() function.
*/
struct net_pkt {
/** FIFO uses first 4 bytes itself, reserve space */
int _reserved;

/** Internal variable that is used when packet is sent */
struct k_work work;

0 comments on commit 79672d1

Please sign in to comment.
You can’t perform that action at this time.