From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ex1.cas-well.com (unknown [122.146.96.100]) by dpdk.org (Postfix) with ESMTP id 82BF9C550 for ; Tue, 23 Jun 2015 15:24:30 +0200 (CEST) Received: from [192.168.143.101] (192.168.143.101) by ex1.cas-well.com (192.168.200.10) with Microsoft SMTP Server id 14.3.195.1; Tue, 23 Jun 2015 21:24:27 +0800 Message-ID: <55895E0A.50107@cas-well.com> Date: Tue, 23 Jun 2015 21:24:26 +0800 From: =?UTF-8?B?IlNjb3R0LkpodWFuZyAo6I6K5riF57+UKSA6IDYzMDki?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "Choi, Sy Jong" , "dev@dpdk.org" References: <557EAA67.6090702@cas-well.com> <697F8B1B48670548A5BAB03E8283550F354483D8@PGSMSX108.gar.corp.intel.com> <5580E567.3020204@cas-well.com> <697F8B1B48670548A5BAB03E8283550F35448689@PGSMSX108.gar.corp.intel.com> <55824809.9090804@cas-well.com> <697F8B1B48670548A5BAB03E8283550F35448F93@PGSMSX108.gar.corp.intel.com> In-Reply-To: <697F8B1B48670548A5BAB03E8283550F35448F93@PGSMSX108.gar.corp.intel.com> X-Originating-IP: [192.168.143.101] Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] How to get net_device and use struct ethtool_cmd at DPDK enverinment? 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: Tue, 23 Jun 2015 13:24:32 -0000 Dear Sy Jong, Yes, I have check out DPDK KNI, but I still can't find how to prepare net_d= evice structure... And I also doesn't find how to get "ethtool_cmd.phy_address" Could you let me know the path of source code folder Choi, Sy Jong =E6=96=BC 2015=E5=B9=B406=E6=9C=8819=E6=97=A5 10:35 =E5=AF=AB= =E9=81=93: Hi Scott, DPDK PMD are interfacing using rte_ethdev.c which link to ixgbe_ethdev.c th= ere=E2=80=99s no =E2=80=9Cnet_device=E2=80=9D in our code. But if you search DPDk code based, we have KNI example to teach you how to = prepare the net_device structure. Have you check out our DPDK KNI codes? Regards, Choi, Sy Jong Platform Application Engineer From: "Scott.Jhuang (=E8=8E=8A=E6=B8=85 =E7=BF=94) : 6309" [mailto:Scott.Jh= uang@cas-well.com] Sent: Thursday, June 18, 2015 12:25 PM To: Choi, Sy Jong; dev@dpdk.org Subject: Re: [dpdk-dev] How to get net_device and use struct ethtool_cmd at= DPDK enverinment? Dear Sy Jong, I'm planning to program a driver to get all the ethport's net_device struct= ure, because I need some information from these net_device structures. And I also need to use net_device struct's ethtool_cmd to get some informat= ion e.g. ethtool_cmd.phy_address, net_device->ethtool_ops->get_settings. In fact, I need some information from net_device struct to access and contr= ol PHY's link-up/down, and I reference igb driver to design the link-up/down functions, since in D= PDK envirenment doesn't have igb driver, so In DPDK envirenment, I don't know how to get network deivce's net_device= structs and more information which initial by igb driver(because doesn't h= ave igb driver). Choi, Sy Jong =E6=96=BC 2015=E5=B9=B406=E6=9C=8817=E6=97=A5 11:15 =E5=AF=AB= =E9=81=93: Hi Scott, You are right, the KNI will be a good reference for you. It demonstrate how= DPDK PMD interface with kernel. May I know are you planning to build the interface to ethtool? You can try = running KNI app. Regards, Choi, Sy Jong Platform Application Engineer From: "Scott.Jhuang (=E8=8E=8A=E6=B8=85 =E7=BF=94) : 6309" [mailto:Scott.Jh= uang@cas-well.com] Sent: Wednesday, June 17, 2015 11:12 AM To: Choi, Sy Jong; dev@dpdk.org Subject: Re: [dpdk-dev] How to get net_device and use struct ethtool_cmd at= DPDK enverinment? Hi Sy Jong, But...I am programming a driver now, have any sample driver I can reference= ? Choi, Sy Jong =E6=96=BC 2015=E5=B9=B406=E6=9C=8816=E6=97=A5 14:48 =E5=AF=AB= =E9=81=93: Hi Scott, You can review DPDK KNI sample app, there's ethtool support using a vEth de= vice interfacing to DPDK PMD. Pure DPDK PMD require programming to display the information in ethtool. Th= e interfacing is demonstrate on KNI sample app. Regards, Choi, Sy Jong Platform Application Engineer -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of "Scott.Jhuang (???) : = 6309" Sent: Monday, June 15, 2015 6:35 PM To: dev@dpdk.org Subject: [dpdk-dev] How to get net_device and use struct ethtool_cmd at DPD= K enverinment? Hi, I want to get etherport's net_device structs and using ethtool_cmd to get s= ome information of etherports. Are these capabilitys igb_uio driver also provided? If not, how can I get net_devices and use ethtool_cmd capabilitys? -- Best Regards, Scott Jhuang Software Engineering Dept. Software Engineer CASwell 238 =E6=96=B0=E5=8C=97=E5=B8=82=E6=A8=B9=E6=9E=97=E5=8D=80=E5=8D=9A=E6=84= =9B=E8=A1=97242=E8=99=9F8=E6=A8=93 8F, No.242, Bo-Ai St., Shu-Lin Dist, New Taipei City 238, Taiwan Tel=EF=BC=9A+886-2-7705-8888 # 6309 Fax=EF=BC=9A+886-2-7731-9988 E-mail=EF=BC=9Ascott.jhuang@cas-well.com<= mailto:scott.jhuang@cas-well.com> CASWELL Inc. =E7=91=9E=E7=A5=BA=E9=9B=BB=E9=80=9A http://www.cas-well.com =E6=9C=AC=E4=BF=A1=E4=BB=B6=E5=8F=AF=E8=83=BD=E5=8C=85=E5=90=AB=E7=91=9E=E7= =A5=BA=E9=9B=BB=E9=80=9A=E6=A9=9F=E5=AF=86=E8=B3=87=E8=A8=8A=EF=BC=8C=E9=9D= =9E=E6=8C=87=E5=AE=9A=E4=B9=8B=E6=94=B6=E4=BB=B6=E8=80=85=EF=BC=8C=E8=AB=8B= =E5=8B=BF=E4=BD=BF=E7=94=A8=E6=88=96=E6=8F=AD=E9=9C=B2=E6=9C=AC=E4=BF=A1=E4= =BB=B6=E5=85=A7=E5=AE=B9=EF=BC=8C=E4=B8=A6=E8=AB=8B=E9=8A=B7=E6=AF=80=E6=AD= =A4=E4=BF=A1=E4=BB=B6=E3=80=82 This email may contain confidential informat= ion. Please do not use or disclose it in any way and delete it if you are n= ot the intended recipient. -- Best Regards, Scott Jhuang Software Engineering Dept. Software Engineer CASwell 238 =E6=96=B0=E5=8C=97=E5=B8=82=E6=A8=B9=E6=9E=97=E5=8D=80=E5=8D=9A=E6=84= =9B=E8=A1=97242=E8=99=9F8=E6=A8=93 8F, No.242, Bo-Ai St., Shu-Lin Dist, New Taipei City 238, Taiwan Tel=EF=BC=9A+886-2-7705-8888 # 6309 Fax=EF=BC=9A+886-2-7731-9988 E-mail=EF=BC=9Ascott.jhuang@cas-well.com CASWELL Inc. =E7=91=9E=E7=A5=BA=E9=9B=BB=E9=80=9A http://www.cas-well.com =E6=9C=AC=E4=BF=A1=E4=BB=B6=E5=8F=AF=E8=83=BD=E5=8C=85=E5=90=AB=E7=91=9E=E7= =A5=BA=E9=9B=BB=E9=80=9A=E6=A9=9F=E5=AF=86=E8=B3=87=E8=A8=8A=EF=BC=8C=E9=9D= =9E=E6=8C=87=E5=AE=9A=E4=B9=8B=E6=94=B6=E4=BB=B6=E8=80=85=EF=BC=8C=E8=AB=8B= =E5=8B=BF=E4=BD=BF=E7=94=A8=E6=88=96=E6=8F=AD=E9=9C=B2=E6=9C=AC=E4=BF=A1=E4= =BB=B6=E5=85=A7=E5=AE=B9=EF=BC=8C=E4=B8=A6=E8=AB=8B=E9=8A=B7=E6=AF=80=E6=AD= =A4=E4=BF=A1=E4=BB=B6=E3=80=82 This email may contain confidential informat= ion. Please do not use or disclose it in any way and delete it if you are n= ot the intended recipient. -- Best Regards, Scott Jhuang Software Engineering Dept. Software Engineer CASwell 238 =E6=96=B0=E5=8C=97=E5=B8=82=E6=A8=B9=E6=9E=97=E5=8D=80=E5=8D=9A=E6=84= =9B=E8=A1=97242=E8=99=9F8=E6=A8=93 8F, No.242, Bo-Ai St., Shu-Lin Dist, New Taipei City 238, Taiwan Tel=EF=BC=9A+886-2-7705-8888 # 6309 Fax=EF=BC=9A+886-2-7731-9988 E-mail=EF=BC=9Ascott.jhuang@cas-well.com CASWELL Inc. =E7=91=9E=E7=A5=BA=E9=9B=BB=E9=80=9A http://www.cas-well.com =E6=9C=AC=E4=BF=A1=E4=BB=B6=E5=8F=AF=E8=83=BD=E5=8C=85=E5=90=AB=E7=91=9E=E7= =A5=BA=E9=9B=BB=E9=80=9A=E6=A9=9F=E5=AF=86=E8=B3=87=E8=A8=8A=EF=BC=8C=E9=9D= =9E=E6=8C=87=E5=AE=9A=E4=B9=8B=E6=94=B6=E4=BB=B6=E8=80=85=EF=BC=8C=E8=AB=8B= =E5=8B=BF=E4=BD=BF=E7=94=A8=E6=88=96=E6=8F=AD=E9=9C=B2=E6=9C=AC=E4=BF=A1=E4= =BB=B6=E5=85=A7=E5=AE=B9=EF=BC=8C=E4=B8=A6=E8=AB=8B=E9=8A=B7=E6=AF=80=E6=AD= =A4=E4=BF=A1=E4=BB=B6=E3=80=82 This email may contain confidential informat= ion. Please do not use or disclose it in any way and delete it if you are n= ot the intended recipient. -- Best Regards, Scott Jhuang Software Engineering Dept. Software Engineer CASwell 238 =E6=96=B0=E5=8C=97=E5=B8=82=E6=A8=B9=E6=9E=97=E5=8D=80=E5=8D=9A=E6=84= =9B=E8=A1=97242=E8=99=9F8=E6=A8=93 8F, No.242, Bo-Ai St., Shu-Lin Dist, New Taipei City 238, Taiwan Tel=EF=BC=9A+886-2-7705-8888 # 6309 Fax=EF=BC=9A+886-2-7731-9988 E-mail=EF=BC=9Ascott.jhuang@cas-well.com CASWELL Inc. =E7=91=9E=E7=A5=BA=E9=9B=BB=E9=80=9A http://www.cas-well.com =E6=9C=AC=E4=BF=A1=E4=BB=B6=E5=8F=AF=E8=83=BD=E5=8C=85=E5=90=AB=E7=91=9E=E7= =A5=BA=E9=9B=BB=E9=80=9A=E6=A9=9F=E5=AF=86=E8=B3=87=E8=A8=8A=EF=BC=8C=E9=9D= =9E=E6=8C=87=E5=AE=9A=E4=B9=8B=E6=94=B6=E4=BB=B6=E8=80=85=EF=BC=8C=E8=AB=8B= =E5=8B=BF=E4=BD=BF=E7=94=A8=E6=88=96=E6=8F=AD=E9=9C=B2=E6=9C=AC=E4=BF=A1=E4= =BB=B6=E5=85=A7=E5=AE=B9=EF=BC=8C=E4=B8=A6=E8=AB=8B=E9=8A=B7=E6=AF=80=E6=AD= =A4=E4=BF=A1=E4=BB=B6=E3=80=82 This email may contain confidential informat= ion. Please do not use or disclose it in any way and delete it if you are n= ot the intended recipient.