Message ID | 1400578650-6917-1-git-send-email-nicolas.dichtel@6wind.com |
---|---|
State | Superseded, archived |
Delegated to: | stephen hemminger |
Headers | show |
Hi Nicolas On 05/20/2014 05:37 AM, Nicolas Dichtel wrote: > Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> > --- > bridge/link.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/bridge/link.c b/bridge/link.c > index 38dfaea2e180..1632bc16803f 100644 > --- a/bridge/link.c > +++ b/bridge/link.c > @@ -185,6 +185,9 @@ int print_linkinfo(const struct sockaddr_nl *who, > if (prtb[IFLA_BRPORT_FAST_LEAVE]) > print_onoff(fp, "fastleave", > rta_getattr_u8(prtb[IFLA_BRPORT_FAST_LEAVE])); > + if (prtb[IFLA_BRPORT_LEARNING]) > + print_onoff(fp, "learning", > + rta_getattr_u8(prtb[IFLA_BRPORT_LEARNING])); > } > } else > print_portstate(fp, rta_getattr_u8(tb[IFLA_PROTINFO])); > Already proposed. See http://patchwork.ozlabs.org/patch/350291/ -vlad -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Le 20/05/2014 17:13, Vlad Yasevich a écrit : > Hi Nicolas > > On 05/20/2014 05:37 AM, Nicolas Dichtel wrote: >> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> >> --- >> bridge/link.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/bridge/link.c b/bridge/link.c >> index 38dfaea2e180..1632bc16803f 100644 >> --- a/bridge/link.c >> +++ b/bridge/link.c >> @@ -185,6 +185,9 @@ int print_linkinfo(const struct sockaddr_nl *who, >> if (prtb[IFLA_BRPORT_FAST_LEAVE]) >> print_onoff(fp, "fastleave", >> rta_getattr_u8(prtb[IFLA_BRPORT_FAST_LEAVE])); >> + if (prtb[IFLA_BRPORT_LEARNING]) >> + print_onoff(fp, "learning", >> + rta_getattr_u8(prtb[IFLA_BRPORT_LEARNING])); >> } >> } else >> print_portstate(fp, rta_getattr_u8(tb[IFLA_PROTINFO])); >> > > Already proposed. See http://patchwork.ozlabs.org/patch/350291/ Sorry for the noise, I've looked too quickly the patchwork. Regards, Nicolas -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/bridge/link.c b/bridge/link.c index 38dfaea2e180..1632bc16803f 100644 --- a/bridge/link.c +++ b/bridge/link.c @@ -185,6 +185,9 @@ int print_linkinfo(const struct sockaddr_nl *who, if (prtb[IFLA_BRPORT_FAST_LEAVE]) print_onoff(fp, "fastleave", rta_getattr_u8(prtb[IFLA_BRPORT_FAST_LEAVE])); + if (prtb[IFLA_BRPORT_LEARNING]) + print_onoff(fp, "learning", + rta_getattr_u8(prtb[IFLA_BRPORT_LEARNING])); } } else print_portstate(fp, rta_getattr_u8(tb[IFLA_PROTINFO]));
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> --- bridge/link.c | 3 +++ 1 file changed, 3 insertions(+)