LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2013, 05:20 AM   #1
harinathreddy.c
LQ Newbie
 
Registered: Dec 2010
Posts: 26

Rep: Reputation: 1
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
 
Old 02-20-2013, 05:46 AM   #2
wadhah102
LQ Newbie
 
Registered: Apr 2011
Location: Tunis, Tunisia
Distribution: Ubuntu/Debian/CentOS
Posts: 14

Rep: Reputation: 0
Hi,

verify if mii-tool or ethtool are installed or not:

Code:
apt-get install ethtool net-tools ethstatus ethstats
Best Regards
 
Old 02-20-2013, 06:56 AM   #3
harinathreddy.c
LQ Newbie
 
Registered: Dec 2010
Posts: 26

Original Poster
Rep: Reputation: 1
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
 
Old 02-20-2013, 02:03 PM   #4
wadhah102
LQ Newbie
 
Registered: Apr 2011
Location: Tunis, Tunisia
Distribution: Ubuntu/Debian/CentOS
Posts: 14

Rep: Reputation: 0
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

Code:
ifconfig --help
Best Regaeds
 
Old 02-22-2013, 05:37 AM   #5
harinathreddy.c
LQ Newbie
 
Registered: Dec 2010
Posts: 26

Original Poster
Rep: Reputation: 1
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: Neither the sysfs interface links nor the iw command is available tonj Linux - Newbie 2 09-24-2012 02:50 AM
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 03:49 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM
how can i shutdown the PHYSICAL interface of an ethernet interface markraem Linux - Networking 2 04-12-2007 02:29 PM
Running an executable file from a user created interface krisykc Linux - General 3 03-15-2007 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration