mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ethtool_ops
@ 2003-06-06 14:29 Matthew Wilcox
  2003-06-06 14:31 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2003-06-06 14:29 UTC (permalink / raw)
  To: linux-kernel, linux-net


The patch is 40k, so I'm not going to post it inline.
http://ftp.linux.org.uk/pub/linux/willy/patches/ethtool.diff

Right now, each network driver which supports the ethtool ioctl has its
own implementation of everything from decoding which ethtool ioctl it is,
copying data to and from userspace, marshalling and unmarshalling data
from ethtool packets, etc.  The current setup makes it impossible to
use alternative interfaces to get at the same data (eg sysfs) and it's
not exactly typesafe.

This patch introduces ethtool_ops and converts tg3 to use it.
Drivers don't access userspace on their own under this scheme; they
just do the requested operation and return the appropriate value(s).
Compile-tested only; design approved by jgarzik.  Comments welcomed.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ethtool_ops
  2003-06-06 14:29 [PATCH] ethtool_ops Matthew Wilcox
@ 2003-06-06 14:31 ` David S. Miller
  2003-06-06 15:50   ` ipNetToMediaTable Ravi Kiran G
  0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2003-06-06 14:31 UTC (permalink / raw)
  To: willy; +Cc: linux-kernel, linux-net

   From: Matthew Wilcox <willy@debian.org>
   Date: Fri, 6 Jun 2003 15:29:51 +0100
   
   This patch introduces ethtool_ops and converts tg3 to use it.

I really like this.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* ipNetToMediaTable
  2003-06-06 14:31 ` David S. Miller
@ 2003-06-06 15:50   ` Ravi Kiran G
  0 siblings, 0 replies; 3+ messages in thread
From: Ravi Kiran G @ 2003-06-06 15:50 UTC (permalink / raw)
  To: linux-kernel

hi,

this is w.r.t. to the ipNetToMediaTable.
i am working on a project which requires me to add an entry to this table
through a UCD SNMP (4.1.2) manager.
i am currently using the foll. command:

snmpset -v 3 -u <my-user-name> -l authnopriv -a MD5 -A <my-key>
<my-agent-ip> .1.3.6.1.2.1.4.22.1.2.3.172.16.5.6 x "00 a0 b0 c0 d0 ef" (some
MAC).

however, this is resulting in an error packet which says:

Error in Packet.
Reason: noCreation

i also tried the v2 version and i get a similar error (SNMPv2: creation not
allowed).

could some one please help me out as to where i am going wrong?

TIA,

ravi kiran.


Note: 
   Unless otherwise noted, the information provided by this mail does not represent the official statements or views of Ionic Microsystems. 
   Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this e-mail by anyone other than the intended is unauthorised. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver this message (or any part of its contents ) to anyone or take any action in reliance on it. In such case, you should destroy this message, and notify us immediately. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.
If you or your employer does not consent to internet e-mail messages of this kind, please notify us immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-06 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-06 14:29 [PATCH] ethtool_ops Matthew Wilcox
2003-06-06 14:31 ` David S. Miller
2003-06-06 15:50   ` ipNetToMediaTable Ravi Kiran G

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®