[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+FuTSeM_FQBRToXCBix9ns3_07ivfqxYHB4nGHcSqqp31fX5A@mail.gmail.com>
Date: Wed, 13 May 2015 17:10:38 -0400
From: Willem de Bruijn <willemb@...gle.com>
To: Vadim Kochan <vadim4j@...il.com>
Cc: Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH iproute2] ss: Show more info (ring,fanout) for packet socks
> + }
> + if (has_fanout) {
> + uint16_t type = (fanout >> 16) & 0xffff;
type can be modified by flags in the upper 8 bits. Better
mask those out and report them separately.
> +
> + printf("\n\tfanout(");
> + printf("id:%d,", fanout & 0xff);
> + printf("type:0x%x", type);
> + if (type == 0)
> + printf("(hash)");
> + else if (type == 1)
> + printf("(lb)");
> + else if (type == 2)
> + printf("(cpu)");
> + else if (type == 3)
> + printf("(rollover)");
> + else if (type == 4)
> + printf("(random)");
> + else if (type == 5)
> + printf("(qm)");
--
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