Re: [PATCH net-next 01/12] qed: Add ll2 option to limit the number of bds per packet

2017-10-02 Thread David Miller
From: Michal Kalderon Date: Mon, 2 Oct 2017 11:23:47 +0300 > + p_pkt = (void *)((u8 *)p_tx->descq_array + desc_size * i); Hmmm... this is definitely a red flag. > @@ -63,17 +63,14 @@ struct qed_ll2_rx_packet { > struct qed_ll2_tx_packet { > struct

[PATCH net-next 01/12] qed: Add ll2 option to limit the number of bds per packet

2017-10-02 Thread Michal Kalderon
iWARP uses 3 ll2 connections, the maximum number of bds is known during connection setup. This patch modifies the static array in the ll2_tx_packet descriptor to be a flexible array and significantlly reduces memory size. In addition, some redundant fields in the ll2_tx_packet were removed, which