[dpdk-dev] [PATCH 2/8] i40e: don't refer to eth_dev->pci_dev
stephen at networkplumber.org
Tue Jan 10 18:57:49 CET 2017
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.
More information about the dev