From: Yaron Illouz <yaroni@radcom.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] patch for dpdk-devbind.py support ipv6
Date: Thu, 21 Jun 2018 14:51:49 +0000 [thread overview]
Message-ID: <AM4PR0501MB2355B83A8EE5A1B817D2E6E5A1760@AM4PR0501MB2355.eurprd05.prod.outlook.com> (raw)
Hi
dpdk-devbind.py support only ipv4 interface, when run with -s parameter which is status, it display all ipv6 interface as non Active
It set interface as Active according to "ip -o route" output
Here is a change that can support ipv6
@@ -269,6 +269,18 @@
# filter out all lines for 169.254 routes
route = "\n".join(filter(lambda ln: not ln.startswith("169.254"),
route.decode().splitlines()))
+
+ routev6 = check_output(["ip", "-6", "-o", "route"])
+ # filter out all lines for 169.254 routes
+ routev6 = "\n".join(filter(lambda ln: not ln.startswith("unreachable") and not ln.startswith("fe80::/64"),
+ routev6.decode().splitlines()))
+
+ if len(routev6):
+ if len(route):
+ route = route+"\n"+routev6
+ else:
+ route = routev6
+
rt_info = route.split()
for i in range(len(rt_info) - 1):
if rt_info[i] == "dev":
@@ -654,3 +666,4 @@
Yaron Illouz
next reply other threads:[~2018-06-21 14:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 14:51 Yaron Illouz [this message]
2018-06-25 9:19 ` Burakov, Anatoly
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=AM4PR0501MB2355B83A8EE5A1B817D2E6E5A1760@AM4PR0501MB2355.eurprd05.prod.outlook.com \
--to=yaroni@radcom.com \
--cc=dev@dpdk.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 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).