[dpdk-dev] [PATCH v2 2/2] i40evf: support interrupt based pf reset request

David Marchand david.marchand at 6wind.com
Mon Feb 15 14:16:16 CET 2016


Hello,

On Sun, Feb 14, 2016 at 4:25 AM, Wu, Jingjing <jingjing.wu at intel.com> wrote:
>> -----Original Message-----
>> From: David Marchand [mailto:david.marchand at 6wind.com]
>> Having this infrastructure is one thing, but the initial problem was that the
>> driver did not recover from this reset event.
>> The linux i40e vf driver handles this kind of event itself.
>> Could we have something similar ?
>>
>
> Considering about the how to use DPDK PMD, and how to setup resource, we can
> know that lots of resources are managed by application. I think based on current
> PMD driver framework, driver cannot reset without application's help.

I reported an issue on ixgbe.
What you provide here is a workaround for i40e.
I am not even sure this can be applied to ixgbe.

Does it mean that anytime we have a problem with drivers, workarounds
should be applied to ethdev / eal ... so that you don't have to handle
anything in the drivers ?
This is not the first time I complain about this kind of design issues.


> If we need to support driver recovery automatically, we'd better to find a way to do that.
> Do you have any idea?

First, list those "lots of resources" that "are managed by application".
If your driver needs to keep track of those, this is i40e driver job
to do this internally without requiring ethdev to be modified.

If this proves to be generic enough, maybe moving part of this to
ethdev will then make sense.


Thanks.

-- 
David Marchand


More information about the dev mailing list