Commit 48673ef4 authored by David Arinzon's avatar David Arinzon Committed by Jakub Kicinski

net: ena: Reduce holes in ena_com structures

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: default avatarShahar Itzko <itzko@amazon.com>
Signed-off-by: default avatarDavid Arinzon <darinzon@amazon.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240512134637.25299-3-darinzon@amazon.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 62a261f6
...@@ -305,6 +305,8 @@ struct ena_com_dev { ...@@ -305,6 +305,8 @@ struct ena_com_dev {
u16 stats_func; /* Selected function for extended statistic dump */ u16 stats_func; /* Selected function for extended statistic dump */
u16 stats_queue; /* Selected queue 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_com_mmio_read mmio_read;
struct ena_rss rss; struct ena_rss rss;
...@@ -325,8 +327,6 @@ struct ena_com_dev { ...@@ -325,8 +327,6 @@ struct ena_com_dev {
struct ena_intr_moder_entry *intr_moder_tbl; struct ena_intr_moder_entry *intr_moder_tbl;
struct ena_com_llq_info llq_info; struct ena_com_llq_info llq_info;
u32 ena_min_poll_delay_us;
}; };
struct ena_com_dev_get_features_ctx { struct ena_com_dev_get_features_ctx {
......
...@@ -47,7 +47,7 @@ struct ena_com_rx_ctx { ...@@ -47,7 +47,7 @@ struct ena_com_rx_ctx {
bool frag; bool frag;
u32 hash; u32 hash;
u16 descs; u16 descs;
int max_bufs; u16 max_bufs;
u8 pkt_offset; u8 pkt_offset;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment