Skip to content

Commit 48673ef

Browse files
davidarinzonkuba-moo
authored andcommitted
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: Shahar Itzko <[email protected]> Signed-off-by: David Arinzon <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 62a261f commit 48673ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/amazon/ena/ena_com.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ struct ena_com_dev {
305305
u16 stats_func; /* Selected function for extended statistic dump */
306306
u16 stats_queue; /* Selected queue for extended statistic dump */
307307

308+
u32 ena_min_poll_delay_us;
309+
308310
struct ena_com_mmio_read mmio_read;
309311

310312
struct ena_rss rss;
@@ -325,8 +327,6 @@ struct ena_com_dev {
325327
struct ena_intr_moder_entry *intr_moder_tbl;
326328

327329
struct ena_com_llq_info llq_info;
328-
329-
u32 ena_min_poll_delay_us;
330330
};
331331

332332
struct ena_com_dev_get_features_ctx {

drivers/net/ethernet/amazon/ena/ena_eth_com.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct ena_com_rx_ctx {
4747
bool frag;
4848
u32 hash;
4949
u16 descs;
50-
int max_bufs;
50+
u16 max_bufs;
5151
u8 pkt_offset;
5252
};
5353

0 commit comments

Comments
 (0)