All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ashutosh Tripathi <azbycs@gmail.com>
To: netdev@vger.kernel.org
Subject: Setting up interfaces in loopback mode using SIOCETHTOOL
Date: Tue, 16 Jun 2015 16:22:12 +0530	[thread overview]
Message-ID: <CAC4WbQYt6K8xoHxviiGSsPRoEd7UX4Rhs0wkUvF+MPHG3yU2Aw@mail.gmail.com> (raw)

Hi All,

In spite of several days of trying to get information out of ethtool
source code, I could not get a way to set the loopback mode for
network interfaces. I was also referring to the driver code for ixgbe
devices to get more info on the support it provides to ethtool. In the
driver code, there seems to be a way to set the loopback mode. But I
had no idea how to refer to this code from user space.

The SIOCETHTOOL is pretty general purpose. There is a way to test the
interface in loopback mode via the command line interface. But I just
wanted to set the interface in loopback mode so that I could send
packets on the interface myself and stress the interface.

Please help me with any suggestion in this regard.

Thanks,
----
Ashutosh

             reply	other threads:[~2015-06-16 10:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16 10:52 Ashutosh Tripathi [this message]
2015-06-16 15:08 ` Setting up interfaces in loopback mode using SIOCETHTOOL Skidmore, Donald C

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=CAC4WbQYt6K8xoHxviiGSsPRoEd7UX4Rhs0wkUvF+MPHG3yU2Aw@mail.gmail.com \
    --to=azbycs@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.