Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-20-2013, 05:20 AM
|
#1
|
LQ Newbie
Registered: Dec 2010
Posts: 26
Rep:
|
speed file is not get created in sysfs under ethernet interface dierectory
Hi,
I am working with broadcom ethernet driver. I observed that speed file is not get created in the usaual path as below.
/sys/class/net/eth%d/speed.
Kindly give me any advices so that that driver can create this file.
Thanks,
Harinath
|
|
|
02-20-2013, 05:46 AM
|
#2
|
LQ Newbie
Registered: Apr 2011
Location: Tunis, Tunisia
Distribution: Ubuntu/Debian/CentOS
Posts: 14
Rep:
|
Hi,
verify if mii-tool or ethtool are installed or not:
Code:
apt-get install ethtool net-tools ethstatus ethstats
Best Regards 
|
|
|
02-20-2013, 06:56 AM
|
#3
|
LQ Newbie
Registered: Dec 2010
Posts: 26
Original Poster
Rep:
|
hi wadhah,
Thanks for ur kind info.
I am using embedded router. So I dont want install those tools. Actualy I am giving some ioctls to find the speed of the
device,I am getting zero. So I verified in the sysfs on router and observed that speed file is not get create.
So I am expecting in the drivers point of view ,whose is the responsible to create that file.
Thanks,
Harinath
|
|
|
02-20-2013, 02:03 PM
|
#4
|
LQ Newbie
Registered: Apr 2011
Location: Tunis, Tunisia
Distribution: Ubuntu/Debian/CentOS
Posts: 14
Rep:
|
Hi,
you can adjust the speed with the commande ifconfig with the option speed
Code:
ifconfig eth0 1.1.1.1 .... speed ...
but with an embedded system you can verify if this possible with the commande
Best Regaeds 
|
|
|
02-22-2013, 05:37 AM
|
#5
|
LQ Newbie
Registered: Dec 2010
Posts: 26
Original Poster
Rep:
|
Hi All,
I should write a ioctl command,that can get the speeed of the ethernet link. I am using broadcom ehernet driver.
So please tell me how I can read the speed in driver and I can update the useraddress at ioctl cmd.
Thanks,
Harinath
|
|
|
All times are GMT -5. The time now is 02:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|