From f7cc3d576cec068f7722da7d86885164cdf99823 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Fri, 16 Apr 2010 19:32:40 +0000 Subject: swconfig: Add cpu port index to help output. Let swconfig provide the cpu port index in its help page. This is needed as e.g. Atheros switches have their cpu port at port 0, not port 5. This could allow e.g. luci to get a rough overview of the layout of the switch. Signed-off-by: Jonas Gorski SVN-Revision: 20939 --- target/linux/generic-2.6/files/drivers/net/phy/swconfig.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/generic-2.6/files/drivers/net') diff --git a/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c b/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c index bb49df83eb..376dec16f9 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c +++ b/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c @@ -761,6 +761,7 @@ swconfig_send_switch(struct sk_buff *msg, u32 pid, u32 seq, int flags, NLA_PUT_STRING(msg, SWITCH_ATTR_DEV_NAME, dev->devname); NLA_PUT_U32(msg, SWITCH_ATTR_VLANS, dev->vlans); NLA_PUT_U32(msg, SWITCH_ATTR_PORTS, dev->ports); + NLA_PUT_U32(msg, SWITCH_ATTR_CPU_PORT, dev->cpu_port); return genlmsg_end(msg, hdr); nla_put_failure: -- cgit v1.2.3