From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0051.outbound.protection.outlook.com [104.47.2.51]) by dpdk.org (Postfix) with ESMTP id 15ACB44CF for ; Wed, 28 Mar 2018 09:05:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=59Y+LDleOGcUlcQuSGt3TYojmmqRtf48Kn8uMZCST7s=; b=mxUeutReUQ0YT2RbrctWJSSiKOXjHZssE4aQ8X96aDrH4SvOTgeW058CNdCUv4VEs7toXz/5Nw79+jbY7Bi4oSt/TYJwPgyfs8IGfAHLHBxxg0d9cWrgYnbimrda4uEBqrbUYJDHygebMbZnyJav2XgkdMAV41dG64+nRIHnsCE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.40.129] (14.142.187.166) by DB6PR0402MB2776.eurprd04.prod.outlook.com (2603:10a6:4:96::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Wed, 28 Mar 2018 07:05:05 +0000 To: Ferruh Yigit Cc: Wenzhuo Lu , Jingjing Wu , "John W. Linville" , Shepard Siegel , Ed Czeck , John Miller , Allain Legacy , Matt Peters , Harish Patil , Rasesh Mody , Ajit Khaparde , Somnath Kotur , Rahul Lakkireddy , Hemant Agrawal , Shreyansh Jain , Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin , John Daley , Hyong Youb Kim , Qi Zhang , Xiao Wang , Beilei Xing , Konstantin Ananyev , Shijith Thotton , Srisivasubramanian Srinivasan , Adrien Mazarguil , Nelio Laranjeiro , Yongseok Koh , Jacek Siuda , Tomasz Duszynski , Dmitri Epshtein , Natalie Samsonov , Jianbo Liu , Alejandro Lucero , Tetsuya Mukawa , Santosh Shukla , Jerin Jacob , Shahed Shaikh , Bruce Richardson , Andrew Rybchenko , Matej Vido , Pascal Mazon , Maciej Czekaj , Maxime Coquelin , Tiwei Bie , Shrikrishna Khare , Remy Horton , Ori Kam , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Cristian Dumitrescu , Thomas Monjalon , dev@dpdk.org References: <20180327174052.266285-1-ferruh.yigit@intel.com> From: Shreyansh Jain Message-ID: <43970f11-d3a2-8f85-8937-91d5459b5f31@nxp.com> Date: Wed, 28 Mar 2018 12:34:52 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180327174052.266285-1-ferruh.yigit@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0106.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::22) To DB6PR0402MB2776.eurprd04.prod.outlook.com (2603:10a6:4:96::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ce5ef231-0dc6-4f36-4889-08d5947a4280 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0402MB2776; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2776; 3:7sdHfpHYfHUWP6wu1ebBLt0lMxn8foXoLfDKLePSJSzGGll2a3vguMRdpW0eXxevi1doFoNRQHTJ/E2gMUfLSFYNFF+j4urR1dk1t7pBIzD73FG3+SVF3fA2p/uZ3glbpFkUZdf1X5B6iAD9JhGpwg53A5s7Xo6cqXvfHNpC5JkwcNzonQ3defCpYiG22JisrXnASt3aq0LmyLRDOAlrAPyXIeGI1rDNxXyKLzDfJi1/EJ/fbp6VkNsfjbj07VBH; 25:fylke8w60JuhYeLzKteHTKimwb9SUDyEFJVMKVbSRhU+jSC6qVmQnRJ2rytPj13zswOq5Mbok32egaS6vPkMU//8GhQZrAYUj0bu6EopjVlcSyEccVznxuH9syRCh4qwIBTi+jnYbl+JKHs9oJKDdApNnRzmevNKeF0NBmOQjSvpqjrR+9DgmEQPNptMgWaDqh6swwsho8TMOPwHzDJtUIvpm7zev7Ua0/5kR8U6vH6GsZ+0P6gmvgJzp5J8PHTbWlQLIseGtWJ69mgLtOWedPGg7i2sO1rVA+tppAHdP75NAF4mevj85z0vRrfpp1d1j0Aa8iGEe4uggdMDGvobBw==; 31:drtcqhBnldNkTA4DR3YbTxdz4W3HnoM1efCsksOLGHPvcjceAOzpNErRtAAf9126xeDRhXHW+nt0thNdsW4KT27X6V3vB3K6alIyz+NQIQMl8kaEWkNMvmTAhwsz6eg/y3Su3pJDf5mwdAen/WHXcJSp1DgcHDDtgrIAQ7WHEDTcngz5KfD6xIcobtSM1UbknTrmjJaDQga026F9gcluUbAROT5ufr9X//+B9L94pZw= X-MS-TrafficTypeDiagnostic: DB6PR0402MB2776: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2776; 20:nqWo1pBYKf2dhIfRQEd+cHnP+g4lc7HNAOTHRWrFg1lRTi1An6qzNyl0C2/pikCyri4Dvgj4GqiVpdwVmJGBDGHjw221FlYM7mGAZXK2kLekToj5aenxMPGFBA3Gax/tG1K61+V/GlvBjRcjUxWwt4Dg4H2gyv+lbckpoRLTRia8/zJKTiF2dShJFCT0/XYy2F0dBrKT+3Gjpk6OBj2oo1gLYf3w5x0F3qUjNmXwFuBWHdwlH3oAguIeX2SMsilQPqUvsqTSpfuWyt+0MW+T6wSA/YlFRVTXogYDaCr18Th5y+gYicrPCfyVtxAoOxUFDnYkIjFCrJ/mQSy66geHWLB+3d/qhyYv/wugm3hlD3NCTSiBkyfa6yBDKHiErWm7w4moqTp9i+yArNshGNsuYymRyL34Fxmq1FlzyHDJmsRv/z+P+JhsZT4YliPuZ40LjgLH0o0DBgSM04C329prPTaPjACUFwskZFak4wpThXzeTuzgde1a//CwjMi4jCOA; 4:7KOFkN2/oQ/JFlwWepSxgswNeINHPSGyWTZ7LEYJifnxod1MSQOyNWG6dllMR1nW6Mh/+0CikESbOSK9952L0zy5VMcpFZpy13kwX16OaZ1r11zMv9lqY6ei6R+8z7FJMuD0upJKdZDuWvQMKtjK1mKGFbRO6RpAPZij5DASsqZxzUqPKy6jtHRtJvEQB2IKaWXkrtZBUczgncTNq9RXbrcwZNjeJDzRXQweKfR12MGlfnyEofDI5zbHefMmNHUsMgbQyrzLMYdxEPdIYkacOUa445LaRje5CPTDQz1GIVfde5AB11pkYtG2TDnq8oTmglk3Qp2Fj7jBEekvp0sNFms+TJ2NddGUqwVOI/xIPugONUMbnYZZg2zi9NZvZWKU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(788757137089)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:DB6PR0402MB2776; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0402MB2776; X-Forefront-PRVS: 06259BA5A2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(396003)(376002)(39860400002)(39380400002)(346002)(366004)(189003)(199004)(229853002)(50466002)(31686004)(77096007)(386003)(97736004)(52116002)(67846002)(23676004)(52146003)(2486003)(59450400001)(76176011)(53546011)(26005)(55236004)(7736002)(31696002)(54906003)(316002)(5009440100003)(58126008)(16576012)(81166006)(81156014)(105586002)(2906002)(6116002)(3846002)(106356001)(8676002)(6666003)(36756003)(7366002)(7406005)(7416002)(6916009)(8936002)(66066001)(47776003)(65956001)(65806001)(5660300001)(230700001)(305945005)(65826007)(3260700006)(25786009)(39060400002)(4326008)(11346002)(478600001)(6486002)(956004)(6246003)(16526019)(2616005)(53936002)(486005)(476003)(486005)(186003)(86362001)(446003)(64126003)(68736007)(110426004)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0402MB2776; H:[10.232.40.129]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjA0MDJNQjI3NzY7MjM6Y3hxMUlqTTRhV2Qwd256VUI5UjF2cUIw?= =?utf-8?B?ZG9sTitBVjcycU0yM3YyQjJBK0M2MlZvaEdtdkdDNXdQTmRsUXVzRS9QUUhP?= =?utf-8?B?a2diMnRleURKbVR2VWIwU2ZwbjlZWkttcjhJbTVjVkpOVWlVSERQNStwMkVU?= =?utf-8?B?YUpXbG53M01YMWdKUFhLaWNhenBQbHFCRThIOXdwMU9WbzZpWTR2VGg0NkR0?= =?utf-8?B?SUtsbmJ0OVh5K3NTSEdjT1ZtMnM1Z3VJQ21qbGJpdXZwL1ZITHpkSjZGckpo?= =?utf-8?B?RS9UUEk4OU5NUHpIUU5kMFgvekhoY3JvWGQ0bkZoaEljUFA3Rk1xWWN4R0pj?= =?utf-8?B?MHFYcGlZaHR3cFdWL3hmNUR1d1R1Ui9qc3NSN1d2ekhwVkhhYkE3Qmo0UUlW?= =?utf-8?B?bTJ3M2Z2OW1IVnNHZG00U1ZTNTg0RU1nSlhta3dpM2M5NUNuZlhWdlhMOXdT?= =?utf-8?B?aVBIRTJzcm5mVXJBK1pHaEhCaE51c2hhT1dnODN0WG90ZU85VFdsVGxrTFFj?= =?utf-8?B?RW1WK1ZNWEgvUE5zcnU4TEtBbHB6dFY1UldwUUR4cWVNT2sxMitjQlRZNGIw?= =?utf-8?B?L2lKSFhraDZEZ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9/B/mHUf6IkTVW8Z1WR2MTPi3Y/mWTRrkNWJMpm5b0CqjfTvUyZqWC5lXouJq/iRy2vs6QxfpKtFMp+jw/17vEutT1ycEyxWfPDFaA3O32Dy X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2776; 6:tJybKVdjmbRhX46U4oThqoBaxaw1+hox6L0XIs8EdniTx2deO/j+Awc0Cx94zU+EYl299UhVSdcljb2aygpvxRHZx9zaVCRi/KmttK0eBU8+rTwXkd4J794M/kQgWHBP2H4vFOrMEsOdkhtN6QCJYuAIltXPIa9IxI7ZiKjbBsq5q8/8q6jMNQ88rBe3DzWkYDTA9pTa7gLcz9+GrDdbUHMMCE4dAAzMfCsRfDHUd0dinz8KMOgRgrgQrI2lI1bpqSzL6nVEEvBXrNBy6WWPmOCzLvGrUqseB9tLxaWFREH/5/+VkDvrZjyXgiVMu0nnVgdAEcdNZu5Kc+ziDz+LSyJMzM1Rn/W/r2EABtFOCghZBboPtuXzzx1wM2WI24SA6QmO9LMO/T/W0Q9qtXH9r/32L75K8tVSUDbEtZDSACHmERP0uhSHYqe+48m+3gu8LODW4x4jVmN2rFIkDho54w==; 5:SzOgoqTKPNEjJhgr5TUSvQ4xplTPphCkdcfH+CpimOZChrHmvN4P3YM/KUdjPH4l6ZjiE6jKAtBwuJphovo5pIaCxpSFuefHkmL2d885dNRqtm1YVJyt2ecVyuAQPf9LEStr7+AZVnC5fx+EiVTmHU0Mj695nKtUFncDbqghCmo=; 24:wlqOJd0wneCF4KNdAuauKD2K2jZFkZuWXsjtJxudHfj5SZLqpQPBurynI0yGdxnTugCfMHciylpeIL8FISopSBySCDTf3VJ6VZQeiwrvx70= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2776; 7:ehqV2qoVpAmi8xtvUK14tTNbkakYD2YGDj4EYV9Q10ynV4U0CcZ3tOlJE5RnHtRbjAXyssZuAOkxbGYufx1lPDVyHLxcozL3ltLedwt/chVGlLBxViL18MNGwqYDcjHZ7OpX2cqFrMUjx6vXpgcphg9E0K3nFsV3Df3de1reL57+74NkaRmVOm6lj/WYE9JHH7p6r0l29a0qWSyGL/UVVCRduxcF+QMWlkwnsx3q87d2beCqxXIlVBNpTySEqUJy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2018 07:05:05.7604 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce5ef231-0dc6-4f36-4889-08d5947a4280 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2776 X-Mailman-Approved-At: Wed, 28 Mar 2018 14:43:39 +0200 Subject: Re: [dpdk-dev] [PATCH] ethdev: replace bus specific struct with generic dev X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 07:05:21 -0000 On 3/27/2018 11:10 PM, Ferruh Yigit wrote: > Public struct rte_eth_dev_info has a "struct rte_pci_device" field in it > although it is common for all ethdev in all buses. > > Replacing pci specific struct with generic device struct and updating > places that are using pci device in a way to get this information from > generic device. > > Signed-off-by: Ferruh Yigit > --- > Cc: Pablo de Lara > > There is no deprecation notice sent for this update but in this release > ethdev info already updated and ABI already broken, it can be good > opportunity for this update. > --- > app/test-pmd/config.c | 11 ++++++++++- > app/test-pmd/testpmd.h | 24 ++++++++++++++++++------ > drivers/net/af_packet/rte_eth_af_packet.c | 1 + > drivers/net/ark/ark_ethdev.c | 4 +++- > drivers/net/avf/avf_ethdev.c | 2 +- > drivers/net/avp/avp_ethdev.c | 2 +- > drivers/net/bnx2x/bnx2x_ethdev.c | 2 +- > drivers/net/bnxt/bnxt_ethdev.c | 2 +- > drivers/net/cxgbe/cxgbe_ethdev.c | 2 +- > drivers/net/dpaa/dpaa_ethdev.c | 1 + > drivers/net/dpaa2/dpaa2_ethdev.c | 1 + > drivers/net/e1000/em_ethdev.c | 2 +- > drivers/net/e1000/igb_ethdev.c | 4 ++-- > drivers/net/ena/ena_ethdev.c | 2 +- > drivers/net/enic/enic_ethdev.c | 2 +- > drivers/net/fm10k/fm10k_ethdev.c | 2 +- > drivers/net/i40e/i40e_ethdev.c | 2 +- > drivers/net/i40e/i40e_ethdev_vf.c | 2 +- > drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++-- > drivers/net/kni/rte_eth_kni.c | 2 +- > drivers/net/liquidio/lio_ethdev.c | 2 +- > drivers/net/mlx4/mlx4_ethdev.c | 2 +- > drivers/net/mlx5/mlx5_ethdev.c | 2 +- > drivers/net/mrvl/mrvl_ethdev.c | 2 ++ > drivers/net/nfp/nfp_net.c | 2 +- > drivers/net/null/rte_eth_null.c | 1 + > drivers/net/octeontx/octeontx_ethdev.c | 2 +- > drivers/net/pcap/rte_eth_pcap.c | 1 + > drivers/net/qede/qede_ethdev.c | 2 +- > drivers/net/ring/rte_eth_ring.c | 1 + > drivers/net/sfc/sfc_ethdev.c | 2 +- > drivers/net/szedata2/rte_eth_szedata2.c | 2 +- > drivers/net/tap/rte_eth_tap.c | 2 +- > drivers/net/thunderx/nicvf_ethdev.c | 2 +- > drivers/net/virtio/virtio_ethdev.c | 2 +- > drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- > examples/ethtool/lib/rte_ethtool.c | 15 +++++++++------ > examples/ip_pipeline/init.c | 10 ++++++++-- > examples/kni/main.c | 10 +++++++--- > lib/librte_ether/rte_ethdev.h | 2 +- > test/test/test_kni.c | 28 ++++++++++++++++++++++------ > 41 files changed, 114 insertions(+), 54 deletions(-) > [...] > diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c > index 781d75cc2..ec3a024c6 100644 > --- a/drivers/net/cxgbe/cxgbe_ethdev.c > +++ b/drivers/net/cxgbe/cxgbe_ethdev.c > @@ -148,7 +148,7 @@ static void cxgbe_dev_info_get(struct rte_eth_dev *eth_dev, > .nb_align = 1, > }; > > - device_info->pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); > + device_info->device = eth_dev->device; > > device_info->min_rx_bufsize = CXGBE_MIN_RX_BUFSIZE; > device_info->max_rx_pktlen = CXGBE_MAX_RX_PKTLEN; > diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c > index db493648a..29513158f 100644 > --- a/drivers/net/dpaa/dpaa_ethdev.c > +++ b/drivers/net/dpaa/dpaa_ethdev.c > @@ -245,6 +245,7 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, > > PMD_INIT_FUNC_TRACE(); > > + dev_info->device = dev->device; > dev_info->max_rx_queues = dpaa_intf->nb_rx_queues; > dev_info->max_tx_queues = dpaa_intf->nb_tx_queues; > dev_info->min_rx_bufsize = DPAA_MIN_RX_BUF_SIZE; > diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c > index 2fb7b2da7..7802067e8 100644 > --- a/drivers/net/dpaa2/dpaa2_ethdev.c > +++ b/drivers/net/dpaa2/dpaa2_ethdev.c > @@ -163,6 +163,7 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) > > dev_info->if_index = priv->hw_id; > > + dev_info->device = dev->device; > dev_info->max_mac_addrs = priv->max_mac_filters; > dev_info->max_rx_pktlen = DPAA2_MAX_RX_PKT_LEN; > dev_info->min_rx_bufsize = DPAA2_MIN_RX_BUF_SIZE; [...] For dpaa and dpaa2 specific change... > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index ab1030d42..0ed903966 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -995,7 +995,7 @@ struct rte_pci_device; > * Ethernet device information > */ > struct rte_eth_dev_info { > - struct rte_pci_device *pci_dev; /**< Device PCI information. */ > + struct rte_device *device; /** Generic device information */ > const char *driver_name; /**< Device Driver name. */ > unsigned int if_index; /**< Index to bound host interface, or 0 if none. > Use if_indextoname() to translate into an interface name. */ [...] And for the above change: Acked-By: Shreyansh Jain _ Shreyansh