Re: [RFC PATCH v2 2/3] netlink: implement nla_policy for HW QOS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Graf
Date: Thursday, December 2, 2010 - 3:20 am

On Wed, Dec 01, 2010 at 10:22:58AM -0800, John Fastabend wrote:

You have to check the return value here.


Same here


This is probably not what you want. NLA_BINARY only enforces a maximum
payload length but no minimum payload length.

Omit the .type and let it fall back to NLA_UNSPEC and only specify a
.len. This enforces that the attribute payload is at least .len in
length. You should not worry about payload that exceeds your size
expectations. This allows to extend ifla_tc_txq in the future.


Same here
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH v2 3/3] ixgbe: add multiple txqs per tc, John Fastabend, (Wed Dec 1, 11:23 am)
Re: [RFC PATCH v2 2/3] netlink: implement nla_policy for H ..., Thomas Graf, (Thu Dec 2, 3:20 am)