From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
To: David Laight <David.Laight@ACULAB.COM>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next 1/3] ibmvnic: Enable scatter-gather support
Date: Thu, 26 Oct 2017 12:51:52 -0500 [thread overview]
Message-ID: <e5015ac2-d0f7-ff95-eea5-1adbedb13dc9@linux.vnet.ibm.com> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6DD009AA16@AcuExch.aculab.com>
On 10/18/2017 06:04 AM, David Laight wrote:
> From: Thomas Falcon
>> Sent: 17 October 2017 18:37
>> This patch enables scatter gather support. Since there is no
>> HW/FW scatter-gather support at this time, the driver needs to
>> loop through each fragment and copy it to a contiguous, pre-mapped
>> buffer entry.
> ...
>> offset = index * adapter->req_mtu;
>> dst = tx_pool->long_term_buff.buff + offset;
> You should be able to treat the pre-allocated data area as a
> big ring buffer.
> So it can hold a lot of small frames or a few big ones.
> This slightly complicates the 'is there enough space for
> this packet' check since you need buffer space as well
> as a ring entry.
>
> You also really want to align each tx buffer on a 4n+2
> boundary so that most of the copy is aligned.
Thanks for your comments. I'll try to address that in a future patch.
>
>> memset(dst, 0, adapter->req_mtu);
> Seems unnecessary.
I removed that bit, and so far you seem to be right :) .
Thanks,
Tom
>
> David
>
next prev parent reply other threads:[~2017-10-26 17:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 17:36 [PATCH net-next 0/3] ibmvnic: Enable SG and TSO feature support Thomas Falcon
2017-10-17 17:36 ` [PATCH net-next 1/3] ibmvnic: Enable scatter-gather support Thomas Falcon
2017-10-18 11:04 ` David Laight
2017-10-26 17:51 ` Thomas Falcon [this message]
2017-10-27 10:05 ` David Laight
2017-10-17 17:36 ` [PATCH net-next 2/3] ibmvnic: Enable TSO support Thomas Falcon
2017-10-17 17:36 ` [PATCH net-next 3/3] ibmvnic: Let users change net device features Thomas Falcon
2017-10-19 12:20 ` [PATCH net-next 0/3] ibmvnic: Enable SG and TSO feature support David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5015ac2-d0f7-ff95-eea5-1adbedb13dc9@linux.vnet.ibm.com \
--to=tlfalcon@linux.vnet.ibm.com \
--cc=David.Laight@ACULAB.COM \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).