* [PATCH net-next v2 0/7] korina: performance fixes and cleanup
@ 2017-09-17 17:23 Roman Yeryomin
2017-09-17 20:09 ` Florian Fainelli
2017-09-18 23:50 ` David Miller
0 siblings, 2 replies; 5+ messages in thread
From: Roman Yeryomin @ 2017-09-17 17:23 UTC (permalink / raw)
To: netdev
Changes from v1:
- use GRO instead of increasing ring size
- use NAPI_POLL_WEIGHT instead of defining own NAPI_WEIGHT
- optimize rx descriptor flags processing
Roman Yeryomin (7):
net: korina: don't use overflow and underflow interrupts
net: korina: optimize rx descriptor flags processing
net: korina: use NAPI_POLL_WEIGHT
net: korina: use GRO
net: korina: whitespace cleanup
net: korina: update authors
net: korina: bump version
drivers/net/ethernet/korina.c | 230 ++++++++++++++----------------------------
1 file changed, 78 insertions(+), 152 deletions(-)
--
2.11.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2 0/7] korina: performance fixes and cleanup
2017-09-17 17:23 [PATCH net-next v2 0/7] korina: performance fixes and cleanup Roman Yeryomin
@ 2017-09-17 20:09 ` Florian Fainelli
2017-09-18 13:02 ` Roman Yeryomin
2017-09-18 23:50 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: Florian Fainelli @ 2017-09-17 20:09 UTC (permalink / raw)
To: Roman Yeryomin, netdev
On 09/17/2017 10:23 AM, Roman Yeryomin wrote:
> Changes from v1:
> - use GRO instead of increasing ring size
> - use NAPI_POLL_WEIGHT instead of defining own NAPI_WEIGHT
> - optimize rx descriptor flags processing
net-next is closed at the moment, but these look like reasonable
changes, I would just replace patch 7 with a patch that entirely drops
the driver specific version since that does not serve any purpose in the
context of an in-kernel driver.
Some nice clean-ups that you should also consider for future changes:
- reduce the duplication of tests/conditions in korina_send_packet(), a
lot of them are testing for the same things and setting the same
descriptor bits
- move korina_tx() to a NAPI context instead of working from hard
interrupt context
- get rid of the MIPS dma_cache_* calls and instead properly use the
DMA-API to allocate descriptors and invalidate/write-back skb->data
>
> Roman Yeryomin (7):
> net: korina: don't use overflow and underflow interrupts
> net: korina: optimize rx descriptor flags processing
> net: korina: use NAPI_POLL_WEIGHT
> net: korina: use GRO
> net: korina: whitespace cleanup
> net: korina: update authors
> net: korina: bump version
>
> drivers/net/ethernet/korina.c | 230 ++++++++++++++----------------------------
> 1 file changed, 78 insertions(+), 152 deletions(-)
>
--
Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2 0/7] korina: performance fixes and cleanup
2017-09-17 20:09 ` Florian Fainelli
@ 2017-09-18 13:02 ` Roman Yeryomin
2017-09-18 13:23 ` Roman Yeryomin
0 siblings, 1 reply; 5+ messages in thread
From: Roman Yeryomin @ 2017-09-18 13:02 UTC (permalink / raw)
To: Florian Fainelli; +Cc: netdev
On 17 September 2017 at 23:09, Florian Fainelli <f.fainelli@gmail.com> wrote:
>
>
> On 09/17/2017 10:23 AM, Roman Yeryomin wrote:
>> Changes from v1:
>> - use GRO instead of increasing ring size
>> - use NAPI_POLL_WEIGHT instead of defining own NAPI_WEIGHT
>> - optimize rx descriptor flags processing
>
> net-next is closed at the moment, but these look like reasonable
> changes, I would just replace patch 7 with a patch that entirely drops
> the driver specific version since that does not serve any purpose in the
> context of an in-kernel driver.
OK
> Some nice clean-ups that you should also consider for future changes:
>
> - reduce the duplication of tests/conditions in korina_send_packet(), a
> lot of them are testing for the same things and setting the same
> descriptor bits
Already doing that :)
> - move korina_tx() to a NAPI context instead of working from hard
> interrupt context
>
> - get rid of the MIPS dma_cache_* calls and instead properly use the
> DMA-API to allocate descriptors and invalidate/write-back skb->data
OK
>>
>> Roman Yeryomin (7):
>> net: korina: don't use overflow and underflow interrupts
>> net: korina: optimize rx descriptor flags processing
>> net: korina: use NAPI_POLL_WEIGHT
>> net: korina: use GRO
>> net: korina: whitespace cleanup
>> net: korina: update authors
>> net: korina: bump version
>>
>> drivers/net/ethernet/korina.c | 230 ++++++++++++++----------------------------
>> 1 file changed, 78 insertions(+), 152 deletions(-)
>>
>
> --
> Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2 0/7] korina: performance fixes and cleanup
2017-09-18 13:02 ` Roman Yeryomin
@ 2017-09-18 13:23 ` Roman Yeryomin
0 siblings, 0 replies; 5+ messages in thread
From: Roman Yeryomin @ 2017-09-18 13:23 UTC (permalink / raw)
To: Florian Fainelli; +Cc: netdev
On 18 September 2017 at 16:02, Roman Yeryomin <leroi.lists@gmail.com> wrote:
> On 17 September 2017 at 23:09, Florian Fainelli <f.fainelli@gmail.com> wrote:
>>
>>
>> On 09/17/2017 10:23 AM, Roman Yeryomin wrote:
>>> Changes from v1:
>>> - use GRO instead of increasing ring size
>>> - use NAPI_POLL_WEIGHT instead of defining own NAPI_WEIGHT
>>> - optimize rx descriptor flags processing
>>
>> net-next is closed at the moment, but these look like reasonable
>> changes, I would just replace patch 7 with a patch that entirely drops
>> the driver specific version since that does not serve any purpose in the
>> context of an in-kernel driver.
>
> OK
>
Oh, wait, forgot we've been here already.
What about ethtool_drvinfo?
Or you mean drop all ethtool helpers?
Regards,
Roman
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2 0/7] korina: performance fixes and cleanup
2017-09-17 17:23 [PATCH net-next v2 0/7] korina: performance fixes and cleanup Roman Yeryomin
2017-09-17 20:09 ` Florian Fainelli
@ 2017-09-18 23:50 ` David Miller
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2017-09-18 23:50 UTC (permalink / raw)
To: leroi.lists; +Cc: netdev
From: Roman Yeryomin <leroi.lists@gmail.com>
Date: Sun, 17 Sep 2017 20:23:53 +0300
> Changes from v1:
> - use GRO instead of increasing ring size
> - use NAPI_POLL_WEIGHT instead of defining own NAPI_WEIGHT
> - optimize rx descriptor flags processing
Series applied, thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-18 23:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-17 17:23 [PATCH net-next v2 0/7] korina: performance fixes and cleanup Roman Yeryomin
2017-09-17 20:09 ` Florian Fainelli
2017-09-18 13:02 ` Roman Yeryomin
2017-09-18 13:23 ` Roman Yeryomin
2017-09-18 23:50 ` David Miller
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).