]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix *_DIAG_MAX constants
authorAndrey Vagin <avagin@openvz.org>
Thu, 21 Mar 2013 16:33:46 +0000 (20:33 +0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2013 16:36:33 +0000 (12:36 -0400)
commitd036fab18335d8130247047254884ada23ae2a7d
tree76c3e90232bf37be0744fcd3d72396112f979815
parent58274cf5af314bdd560475a4c2091a3cf6ecabe5
net: fix *_DIAG_MAX constants

Follow the common pattern and define *_DIAG_MAX like:

        [...]
        __XXX_DIAG_MAX,
};

Because everyone is used to do:

        struct nlattr *attrs[XXX_DIAG_MAX+1];

        nla_parse([...], XXX_DIAG_MAX, [...]

Reported-by: Thomas Graf <tgraf@suug.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/packet_diag.h
include/uapi/linux/unix_diag.h