From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 54F3B8E89 for ; Fri, 30 Oct 2015 14:13:06 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 30 Oct 2015 06:12:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,218,1444719600"; d="scan'208";a="675036606" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga003.jf.intel.com with ESMTP; 30 Oct 2015 06:12:12 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.98]) by IRSMSX153.ger.corp.intel.com ([169.254.9.191]) with mapi id 14.03.0248.002; Fri, 30 Oct 2015 13:12:11 +0000 From: "Kulasek, TomaszX" To: "Iremonger, Bernard" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v6 20/28] bonding: copy device info to eth_dev data Thread-Index: AQHREnkoHzDwgAWBZEi92LlNBmiTQp6EBCIw Date: Fri, 30 Oct 2015 13:12:11 +0000 Message-ID: <3042915272161B4EB253DA4D77EB373A14E0E7BC@IRSMSX102.ger.corp.intel.com> References: <1446143795-31841-1-git-send-email-bernard.iremonger@intel.com> <1446143795-31841-21-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1446143795-31841-21-git-send-email-bernard.iremonger@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v6 20/28] bonding: copy device info to eth_dev data X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 13:13:06 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Bernard Iremonger > Sent: Thursday, October 29, 2015 19:36 > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v6 20/28] bonding: copy device info to > eth_dev data >=20 > initialise dev_flags, kdrv, driver, drv_name and numa_node fields in > eth_dev data. >=20 > Signed-off-by: Bernard Iremonger > --- > drivers/net/bonding/rte_eth_bond_api.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/bonding/rte_eth_bond_api.c > b/drivers/net/bonding/rte_eth_bond_api.c > index 0681d1a..a852dd2 100644 > --- a/drivers/net/bonding/rte_eth_bond_api.c > +++ b/drivers/net/bonding/rte_eth_bond_api.c > @@ -44,6 +44,8 @@ >=20 > #define DEFAULT_POLLING_INTERVAL_10_MS (10) >=20 > +const char pmd_bond_driver_name[] =3D "rte_bond_pmd"; > + > int > valid_bonded_ethdev(const struct rte_eth_dev *eth_dev) { @@ -250,7 > +252,12 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t > socket_id) > eth_dev->data->all_multicast =3D 0; >=20 > eth_dev->dev_ops =3D &default_dev_ops; > - eth_dev->pci_dev =3D pci_dev; > + eth_dev->data->dev_flags =3D RTE_ETH_DEV_INTR_LSC | > + RTE_ETH_DEV_DETACHABLE | RTE_ETH_DEV_BONDED; > + eth_dev->driver =3D NULL; > + eth_dev->data->kdrv =3D RTE_KDRV_NONE; > + eth_dev->data->drv_name =3D pmd_bond_driver_name; > + eth_dev->data->numa_node =3D socket_id; >=20 > rte_spinlock_init(&internals->lock); >=20 > -- > 1.9.1 Acked-by: Tomasz Kulasek