Thread (20 messages) flat view 20 messages, 3 authors, 2017-02-18

Re: [PATCH net-next v2 11/12] net: ethernet: aquantia: Fixed memory allocation if AQ_CFG_RX_FRAME_MAX > 1 page.

From: Pavel Belous <hidden>
Date: 2017-02-18 17:20:16


On 02/18/2017 02:50 PM, Lino Sanfilippo wrote:
Hi,

On 17.02.2017 22:07, Pavel Belous wrote:
quoted
From: Pavel Belous <redacted>

We should allocate the number of pages based on the config parameter
AQ_CFG_RX_FRAME_MAX.

Signed-off-by: Pavel Belous <redacted>
quoted
 	do {
 		if (spin_trylock(&ring->header.lock)) {
-			frags = aq_nic_map_skb(self, skb, &buffers[0]);
+			frags = aq_nic_map_skb(self, skb, buffers);

-			aq_ring_tx_append_buffs(ring, &buffers[0], frags);
+			aq_ring_tx_append_buffs(ring, buffers, frags);
This change has nothing to do with what the commit message claims that the
patch is about. Please dont mix fixes and totally unrelated cleanups in one
patch.

Regards,
Lino
Sorry, its just small fix for readability.
I will remove it or put in separate patch in v3.

Regards,
Pavel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help