netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: "David S. Miller" <davem@redhat.com>, Patrick Mochel <mochel@osdl.org>
Cc: netdev@oss.sgi.com, greg@kroah.com, mochel@osdl.org,
	jkenisto@us.ibm.com, lkessler@us.ibm.com,
	Daniel Stekloff <dsteklof@us.ibm.com>
Subject: [PATCH 0/2] Sysfs net class .
Date: Thu, 15 May 2003 16:27:12 -0700	[thread overview]
Message-ID: <20030515162712.61cd153e.shemminger@osdl.org> (raw)
In-Reply-To: <200305141443.57169.dsteklof@us.ibm.com>

Starting with work by Pat and Daniel Stekoff , I created a sysfs network interface.

There are two parts, one is the core network device piece to create
sysfs entries during init and register. The other is changing the device
drivers so that during registration the appropriate symlinks back to the
pci physical devices gets made.

All this is under a config option in case embedded or other systems
don't need it.  The files are in sysfs standard format with one value per
file.  Most are read-only, although some like flags, mtu, can be set.

The sysfs tree layout is:

class/net
|-- eth0
|   |-- addr_len
|   |-- address
|   |-- broadcast
|   |-- device -> ../../../devices/pci0/00:1e.0/04:04.0
|   |-- driver -> ../../../bus/pci/drivers/e100
|   |-- features
|   |-- flags
|   |-- if_port
|   |-- ifindex
|   |-- mtu
|   |-- statistics
|   |   |-- collisions
|   |   |-- multicast
|   |   |-- rx_bytes
|   |   |-- rx_compressed
|   |   |-- rx_crc_errors
|   |   |-- rx_dropped
|   |   |-- rx_errors
|   |   |-- rx_fifo_errors
|   |   |-- rx_frame_errors
|   |   |-- rx_length_errors
|   |   |-- rx_missed_errors
|   |   |-- rx_over_errors
|   |   |-- rx_packets
|   |   |-- tx_aborted_errors
|   |   |-- tx_bytes
|   |   |-- tx_carrier_errors
|   |   |-- tx_compressed
|   |   |-- tx_dropped
|   |   |-- tx_errors
|   |   |-- tx_fifo_errors
|   |   |-- tx_heartbeat_errors
|   |   |-- tx_packets
|   |   `-- tx_window_errors
|   |-- tx_queue_len
|   `-- type
`-- lo
    |-- addr_len
    |-- address
    |-- broadcast
    |-- features
    |-- flags
    |-- if_port
    |-- ifindex
    |-- mtu
    |-- statistics
    |   |-- collisions
    |   |-- multicast
    |   |-- rx_bytes
    |   |-- rx_compressed
    |   |-- rx_crc_errors
    |   |-- rx_dropped
    |   |-- rx_errors
    |   |-- rx_fifo_errors
    |   |-- rx_frame_errors
    |   |-- rx_length_errors
    |   |-- rx_missed_errors
    |   |-- rx_over_errors
    |   |-- rx_packets
    |   |-- tx_aborted_errors
    |   |-- tx_bytes
    |   |-- tx_carrier_errors
    |   |-- tx_compressed
    |   |-- tx_dropped
    |   |-- tx_errors
    |   |-- tx_fifo_errors
    |   |-- tx_heartbeat_errors
    |   |-- tx_packets
    |   `-- tx_window_errors
    |-- tx_queue_len
    `-- type

6 directories, 66 files

       reply	other threads:[~2003-05-15 23:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030513150303.A2406@DYN318281.beaverton.ibm.com>
     [not found] ` <200305131657.03508.dsteklof@us.ibm.com>
     [not found]   ` <20030514142023.0e411f34.shemminger@osdl.org>
     [not found]     ` <200305141443.57169.dsteklof@us.ibm.com>
2003-05-15 23:27       ` Stephen Hemminger [this message]
2003-05-19 19:46         ` [PATCH 0/2] Sysfs net class Jamal Hadi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030515162712.61cd153e.shemminger@osdl.org \
    --to=shemminger@osdl.org \
    --cc=davem@redhat.com \
    --cc=dsteklof@us.ibm.com \
    --cc=greg@kroah.com \
    --cc=jkenisto@us.ibm.com \
    --cc=lkessler@us.ibm.com \
    --cc=mochel@osdl.org \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).