Re: [PATCH 1/3] [NET-NEXT]: Add DCB netlink interface definition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick McHardy
Date: Thursday, June 5, 2008 - 6:17 am

PJ Waskiewicz wrote:

For these and the other numbered attributes: is the maximum number
fixed and/or defined somewhere? If not, I'd suggest to use lists
of attributes.


And in this case lists of nested attributes consisting of
Priority and Bandwidth, since they seem to belong together.


"getpermhwaddr" doesn't seem to belong in this interface but
in rtnetlink and/or ethtool instead.


^^^ kfree_skb

The same error is present multiple times



The fact that you do this in every handler makes me wonder whether
rtnetlink wouldn't be the better choice, if only because it uses
the rtnl_mutex and configuration changes are thus serialized with
other networking configuration changes.

For example I don't see anything preventing concurrent changes
to the DCB configuration while it is copied between the temporary
configuration and the real one. In one cases its done in a
path holding the rtnl_mutex, in another case its done with
holding the genl_mutex in a genetlink callback.

--
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:
[PATCH] NET: DCB generic netlink interface, PJ Waskiewicz, (Tue May 27, 7:13 am)
RE: [PATCH 1/3] [NET-NEXT]: Add DCB netlink interface defi ..., Waskiewicz Jr, Peter P, (Wed May 28, 9:03 am)
RE: [PATCH 1/3] [NET-NEXT]: Add DCB netlink interface defi ..., Waskiewicz Jr, Peter P, (Sun Jun 1, 5:16 am)
Re: [PATCH] NET: DCB generic netlink interface, David Miller, (Wed Jun 4, 11:44 am)
RE: [PATCH] NET: DCB generic netlink interface, Waskiewicz Jr, Peter P, (Wed Jun 4, 11:23 pm)
Re: [PATCH 1/3] [NET-NEXT]: Add DCB netlink interface defi ..., Patrick McHardy, (Thu Jun 5, 6:17 am)
Re: [PATCH] NET: DCB generic netlink interface, David Miller, (Thu Jun 5, 7:43 am)
Re: [PATCH] NET: DCB generic netlink interface, Thomas Graf, (Thu Jun 5, 1:29 pm)
RE: [PATCH 1/3] [NET-NEXT]: Add DCB netlink interface defi ..., Waskiewicz Jr, Peter P, (Mon Jun 9, 3:11 pm)
RE: [PATCH] NET: DCB generic netlink interface, Waskiewicz Jr, Peter P, (Tue Jun 10, 12:55 pm)
Re: [PATCH] NET: DCB generic netlink interface, David Miller, (Tue Jun 10, 1:07 pm)
Re: [PATCH] NET: DCB generic netlink interface, Patrick McHardy, (Wed Jun 11, 10:50 am)
Re: [PATCH] NET: DCB generic netlink interface, Thomas Graf, (Wed Jun 11, 10:51 am)
RE: [PATCH] NET: DCB generic netlink interface, Waskiewicz Jr, Peter P, (Wed Jun 11, 11:28 am)
Re: [PATCH] NET: DCB generic netlink interface, Thomas Graf, (Wed Jun 11, 2:26 pm)
Re: [PATCH] NET: DCB generic netlink interface, Thomas Graf, (Wed Jun 11, 2:28 pm)
Re: [PATCH] NET: DCB generic netlink interface, Patrick McHardy, (Thu Jun 12, 3:17 am)