[dpdk-dev] [PATCH 2/8] i40e: don't refer to eth_dev->pci_dev

Jan Blunck jblunck at infradead.org
Wed Jan 11 08:55:07 CET 2017


On Tue, Jan 10, 2017 at 6:57 PM, Stephen Hemminger
<stephen at networkplumber.org> wrote:
> On Tue, 10 Jan 2017 13:08:30 +0100
> Jan Blunck <jblunck at infradead.org> wrote:
>
>> On Sat, Jan 7, 2017 at 7:17 PM, Stephen Hemminger
>> <stephen at networkplumber.org> wrote:
>> > Later patches remove pci_dev from the ethernet device structure.
>> > Fix the i40e code to just use it's own name when forming zone name.
>> >
>> > Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com>
>> > ---
>> >  drivers/net/i40e/i40e_fdir.c | 3 +--
>> >  1 file changed, 1 insertion(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c
>> > index 335bf15c..68a2523c 100644
>> > --- a/drivers/net/i40e/i40e_fdir.c
>> > +++ b/drivers/net/i40e/i40e_fdir.c
>> > @@ -250,8 +250,7 @@ i40e_fdir_setup(struct i40e_pf *pf)
>> >         }
>> >
>> >         /* reserve memory for the fdir programming packet */
>> > -       snprintf(z_name, sizeof(z_name), "%s_%s_%d",
>> > -                       eth_dev->driver->pci_drv.driver.name,
>> > +       snprintf(z_name, sizeof(z_name), "i40e_%s_%d",
>>
>> The driver is called 'net_i40e'.
>
> It really doesn't matter. The memory name is just so that primary and secondary
> find the same resources.  Having net_ on the front doesn't change or help.

I understand. Still David Marchand just recently went through the
exercise to align all driver names and their usage.

Is there a reason why you didn't choose to use eth_dev->data->drv_name?


More information about the dev mailing list