[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5678206F.8050104@gmail.com>
Date: Mon, 21 Dec 2015 10:53:19 -0500
From: David Ahern <dsahern@...il.com>
To: Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org
CC: davem@...emloft.net, idosch@...lanox.com, eladr@...lanox.com,
yotamg@...lanox.com, stephen@...workplumber.org,
Jiri Pirko <jiri@...lanox.com>
Subject: Re: [patch net] switchdev: bridge: Pass ageing time as clock_t instead
of jiffies
On 12/21/15 3:56 AM, Jiri Pirko wrote:
> diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
> index 5396ff08..12045de 100644
> --- a/net/bridge/br_stp_if.c
> +++ b/net/bridge/br_stp_if.c
> @@ -39,7 +39,7 @@ void br_init_port(struct net_bridge_port *p)
> struct switchdev_attr attr = {
> .id = SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME,
> .flags = SWITCHDEV_F_SKIP_EOPNOTSUPP | SWITCHDEV_F_DEFER,
> - .u.ageing_time = p->br->ageing_time,
> + .u.ageing_time = jiffies_to_clock_t(p->br->ageing_time),
> };
> int err;
ageing_time is a u32; clock_t is a long.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists