From: Stephen Hemminger <stephen@networkplumber.org>
To: Vijayakumar Muthuvel Manickam <mmvijay@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] kni: Add link status update
Date: Mon, 18 May 2015 20:11:39 -0700 [thread overview]
Message-ID: <20150518201139.6445ff6f@urahara> (raw)
In-Reply-To: <1431992009-13573-1-git-send-email-mmvijay@gmail.com>
I agree that this looks like a good facility to have but this is not
the right way to do it.
There are already several facilities to accomplish the same thing.
1. You can use the operstate functionality in kernel to manipulate carrier
from another application (read Documentation/operstate.txt)
2. It is possible with sysfs to change carrier state. The KNI driver just
has to provide an .ndo_change_carrier callback.
Introducing more ioctl's is not a good thing. KNI needs to get rid of
the quick and dirty ioctl approach and follow current best practices
for Linux network drivers. It should really be using netlink instead of ioctl().
Ioctl's have several compatibility issues that make them unacceptable upstream.
There is a standard API for create/destroy with netlink and the custom
ioctl's could be banished into the attic of dead API's.
PS: Has anybody even attempted to get KNI upstream? I can see lots
of style (and security) issues that would need to be fixed.
prev parent reply other threads:[~2015-05-19 3:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 23:33 Vijayakumar Muthuvel Manickam
2015-05-19 0:54 ` Zhang, Helin
2015-06-15 0:57 ` Zhang, Helin
2015-06-15 1:11 ` Vijayakumar Muthuvel Manickam
2015-06-15 1:12 ` Zhang, Helin
2015-06-15 8:21 ` [dpdk-dev] [PATCH v2] " Vijayakumar Muthuvel Manickam
2015-06-15 16:09 ` Stephen Hemminger
2015-06-16 6:39 ` [dpdk-dev] [PATCH v3] " Vijayakumar Muthuvel Manickam
2015-06-16 7:33 ` Zhang, Helin
2015-06-16 14:29 ` Thomas Monjalon
2015-05-19 3:11 ` Stephen Hemminger [this message]
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=20150518201139.6445ff6f@urahara \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=mmvijay@gmail.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).