[PATCH iproute2] ss: fix build with musl libc

2016-08-19 Thread Gustavo Zacarias
UINT_MAX usage requires limits.h, so include it.

Signed-off-by: Gustavo Zacarias <gust...@zacarias.com.ar>
---
 misc/ss.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/ss.c b/misc/ss.c
index e758f57..3b268d9 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -26,6 +26,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "utils.h"
 #include "rt_names.h"
-- 
2.7.3



[PATCH iproute2] ipaddress: needs to include

2016-05-19 Thread Gustavo Zacarias
It's using MIN() now, otherwise it breaks for musl libc.

Signed-off-by: Gustavo Zacarias <gust...@zacarias.com.ar>
---
 ip/ipaddress.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index 0692fba..df363b0 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -19,6 +19,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
-- 
2.7.3



[PATCH] iproute2: tc_bpf.c: fix building with musl libc

2016-04-08 Thread Gustavo Zacarias
We need limits.h for PATH_MAX, fixes:

tc_bpf.c: In function ‘bpf_map_selfcheck_pinned’:
tc_bpf.c:222:12: error: ‘PATH_MAX’ undeclared (first use in this
function)
  char file[PATH_MAX], buff[4096];

Signed-off-by: Gustavo Zacarias <gust...@zacarias.com.ar>
---
 tc/tc_bpf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tc/tc_bpf.c b/tc/tc_bpf.c
index d94af82..042e76f 100644
--- a/tc/tc_bpf.c
+++ b/tc/tc_bpf.c
@@ -20,6 +20,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #ifdef HAVE_ELF
 #include 
-- 
2.7.3



[PATCH] iproute2: fix building with musl

2016-01-21 Thread Gustavo Zacarias
We need limits.h for PATH_MAX, fixes:

rt_names.c:364:13: error: ‘PATH_MAX’ undeclared (first use in this
function)

Signed-off-by: Gustavo Zacarias <gust...@zacarias.com.ar>
---
 lib/rt_names.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/rt_names.c b/lib/rt_names.c
index f6d17c0..b665d3e 100644
--- a/lib/rt_names.c
+++ b/lib/rt_names.c
@@ -18,6 +18,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
-- 
2.4.10



[PATCH iproute2] tipc: make build conditional on having libmnl

2015-06-27 Thread Gustavo Zacarias
Signed-off-by: Gustavo Zacarias gust...@zacarias.com.ar
---
 Makefile | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 67176be..8153445 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,11 @@ WFLAGS += -Wmissing-declarations -Wold-style-definition 
-Wformat=2
 CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS)
 YACCFLAGS = -d -t -v
 
-SUBDIRS=lib ip tc bridge misc netem genl tipc man
+SUBDIRS=lib ip tc bridge misc netem genl man
+
+ifeq ($(HAVE_MNL),y)
+SUBDIRS += tipc
+endif
 
 LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
 LDLIBS += $(LIBNETLINK)
-- 
2.3.6

--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] iproute2: bump to version 4.1.0

2015-06-27 Thread Gustavo Zacarias
Signed-off-by: Gustavo Zacarias gust...@zacarias.com.ar
---
 ...c-make-build-conditional-on-having-libmnl.patch | 33 ++
 package/iproute2/iproute2.hash |  2 +-
 package/iproute2/iproute2.mk   |  6 +++-
 3 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 
package/iproute2/0001-tipc-make-build-conditional-on-having-libmnl.patch

diff --git 
a/package/iproute2/0001-tipc-make-build-conditional-on-having-libmnl.patch 
b/package/iproute2/0001-tipc-make-build-conditional-on-having-libmnl.patch
new file mode 100644
index 000..ccd1daf
--- /dev/null
+++ b/package/iproute2/0001-tipc-make-build-conditional-on-having-libmnl.patch
@@ -0,0 +1,33 @@
+From db17dd9728b77485f26abb1ac5fcda65130f4a8d Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias gust...@zacarias.com.ar
+Date: Sat, 27 Jun 2015 08:08:51 -0300
+Subject: [PATCHv2 iproute2] tipc: make build conditional on having libmnl
+
+Signed-off-by: Gustavo Zacarias gust...@zacarias.com.ar
+---
+ tipc/Makefile | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git a/tipc/Makefile b/tipc/Makefile
+index 4bda8c5..b3ef9b9 100644
+--- a/tipc/Makefile
 b/tipc/Makefile
+@@ -1,3 +1,6 @@
++include ../Config
++ifeq ($(HAVE_MNL),y)
++
+ TIPCOBJ=bearer.o \
+ cmdl.o link.o \
+ media.o misc.o \
+@@ -8,6 +11,8 @@ TIPCOBJ=bearer.o \
+ TARGETS=tipc
+ LDLIBS += -lmnl
+ 
++endif
++
+ all: $(TARGETS) $(LIBS)
+ 
+ tipc: $(TIPCOBJ)
+-- 
+2.3.6
+
diff --git a/package/iproute2/iproute2.hash b/package/iproute2/iproute2.hash
index 336d6b6..659e275 100644
--- a/package/iproute2/iproute2.hash
+++ b/package/iproute2/iproute2.hash
@@ -1,2 +1,2 @@
 # From https://kernel.org/pub/linux/utils/net/iproute2/sha256sums.asc
-sha256 5cd06eb1050b858b308b65705725042bb566fd261135e35a73dafb48cd632618
iproute2-4.0.0.tar.xz
+sha256 d1326696c6a8f81ba66aaf48d858005cf280c81d3284d8d2c99748e3d0746146
iproute2-4.1.0.tar.xz
diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
index a8f4400..dabc8b4 100644
--- a/package/iproute2/iproute2.mk
+++ b/package/iproute2/iproute2.mk
@@ -4,7 +4,7 @@
 #
 

 
-IPROUTE2_VERSION = 4.0.0
+IPROUTE2_VERSION = 4.1.0
 IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.xz
 IPROUTE2_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/net/iproute2
 IPROUTE2_DEPENDENCIES = host-bison host-flex host-pkgconf
@@ -17,6 +17,10 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 IPROUTE2_DEPENDENCIES += busybox
 endif
 
+ifeq ($(BR2_PACKAGE_LIBMNL),y)
+IPROUTE2_DEPENDENCIES += libmnl
+endif
+
 # If we've got iptables enable xtables support for tc
 ifeq ($(BR2_PACKAGE_IPTABLES)x$(BR2_STATIC_LIBS),yx)
 IPROUTE2_DEPENDENCIES += iptables
-- 
2.3.6

--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCHv2 iproute2] tipc: make build conditional on having libmnl

2015-06-27 Thread Gustavo Zacarias
Signed-off-by: Gustavo Zacarias gust...@zacarias.com.ar
---
 tipc/Makefile | 5 +
 1 file changed, 5 insertions(+)

diff --git a/tipc/Makefile b/tipc/Makefile
index 4bda8c5..b3ef9b9 100644
--- a/tipc/Makefile
+++ b/tipc/Makefile
@@ -1,3 +1,6 @@
+include ../Config
+ifeq ($(HAVE_MNL),y)
+
 TIPCOBJ=bearer.o \
 cmdl.o link.o \
 media.o misc.o \
@@ -8,6 +11,8 @@ TIPCOBJ=bearer.o \
 TARGETS=tipc
 LDLIBS += -lmnl
 
+endif
+
 all: $(TARGETS) $(LIBS)
 
 tipc: $(TIPCOBJ)
-- 
2.3.6

--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH net-next] net: phy: davicom: add IDs for DM9161B and C variants

2015-06-10 Thread Gustavo Zacarias
Add PHY IDs for Davicom DM9161B and DM9161C variants.
Tested with a DM9161C on a custom Atmel-based SAM9X25 board in RMII
mode.

The DM9161B uses the same model id with just the LSB bit of the version
id changing (which is masked out).

For all intents and purposes they're the same as the DM9161A with an
added GPSI mode and better fabrication process.

Signed-off-by: Gustavo Zacarias gust...@zacarias.com.ar
---
 drivers/net/phy/davicom.c | 13 +
 1 file changed, 13 insertions(+)

diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c
index 0d16c7d..2a32870 100644
--- a/drivers/net/phy/davicom.c
+++ b/drivers/net/phy/davicom.c
@@ -158,6 +158,18 @@ static struct phy_driver dm91xx_driver[] = {
.config_intr= dm9161_config_intr,
.driver = { .owner = THIS_MODULE,},
 }, {
+   .phy_id = 0x0181b8b0,
+   .name   = Davicom DM9161B/C,
+   .phy_id_mask= 0x0ff0,
+   .features   = PHY_BASIC_FEATURES,
+   .flags  = PHY_HAS_INTERRUPT,
+   .config_init= dm9161_config_init,
+   .config_aneg= dm9161_config_aneg,
+   .read_status= genphy_read_status,
+   .ack_interrupt  = dm9161_ack_interrupt,
+   .config_intr= dm9161_config_intr,
+   .driver = { .owner = THIS_MODULE,},
+}, {
.phy_id = 0x0181b8a0,
.name   = Davicom DM9161A,
.phy_id_mask= 0x0ff0,
@@ -186,6 +198,7 @@ module_phy_driver(dm91xx_driver);
 
 static struct mdio_device_id __maybe_unused davicom_tbl[] = {
{ 0x0181b880, 0x0ff0 },
+   { 0x0181b8b0, 0x0ff0 },
{ 0x0181b8a0, 0x0ff0 },
{ 0x00181b80, 0x0ff0 },
{ }
-- 
2.3.6

--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html