Skip to content

Commit

Permalink
net: ena: Reduce holes in ena_com structures
Browse files Browse the repository at this point in the history
This patch makes two changes in order to fill holes and
reduce ther overall size of the structures ena_com_dev
and ena_com_rx_ctx.

Signed-off-by: Shahar Itzko <itzko@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240512134637.25299-3-darinzon@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
David Arinzon authored and Jakub Kicinski committed May 13, 2024
1 parent 62a261f commit 48673ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/amazon/ena/ena_com.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ struct ena_com_dev {
u16 stats_func; /* Selected function for extended statistic dump */
u16 stats_queue; /* Selected queue for extended statistic dump */

u32 ena_min_poll_delay_us;

struct ena_com_mmio_read mmio_read;

struct ena_rss rss;
Expand All @@ -325,8 +327,6 @@ struct ena_com_dev {
struct ena_intr_moder_entry *intr_moder_tbl;

struct ena_com_llq_info llq_info;

u32 ena_min_poll_delay_us;
};

struct ena_com_dev_get_features_ctx {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amazon/ena/ena_eth_com.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct ena_com_rx_ctx {
bool frag;
u32 hash;
u16 descs;
int max_bufs;
u16 max_bufs;
u8 pkt_offset;
};

Expand Down

0 comments on commit 48673ef

Please sign in to comment.