net: netlink: rename NETLINK_DUMP_STRICT_CHK -> NETLINK_GET_STRICT_CHK
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 14 Dec 2018 19:38:48 +0000 (11:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 19:44:31 +0000 (11:44 -0800)
NETLINK_DUMP_STRICT_CHK can be used for all GET requests,
dumps as well as doit handlers.  Replace the DUMP in the
name with GET make that clearer.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netlink.h
net/netlink/af_netlink.c
tools/include/uapi/linux/netlink.h

index 486ed1f0c0bc17f48dca895ebf9581aa7d69278d..0a4d73317759c9ee523d7d5482548b3171c821e6 100644 (file)
@@ -155,7 +155,7 @@ enum nlmsgerr_attrs {
 #define NETLINK_LIST_MEMBERSHIPS       9
 #define NETLINK_CAP_ACK                        10
 #define NETLINK_EXT_ACK                        11
-#define NETLINK_DUMP_STRICT_CHK                12
+#define NETLINK_GET_STRICT_CHK         12
 
 struct nl_pktinfo {
        __u32   group;
index 6bb9f3cde0b0d82af00a6b4f212be8c0d385dd47..3c023d6120f657b098639d7fbdef56776225b676 100644 (file)
@@ -1706,7 +1706,7 @@ static int netlink_setsockopt(struct socket *sock, int level, int optname,
                        nlk->flags &= ~NETLINK_F_EXT_ACK;
                err = 0;
                break;
-       case NETLINK_DUMP_STRICT_CHK:
+       case NETLINK_GET_STRICT_CHK:
                if (val)
                        nlk->flags |= NETLINK_F_STRICT_CHK;
                else
@@ -1806,7 +1806,7 @@ static int netlink_getsockopt(struct socket *sock, int level, int optname,
                        return -EFAULT;
                err = 0;
                break;
-       case NETLINK_DUMP_STRICT_CHK:
+       case NETLINK_GET_STRICT_CHK:
                if (len < sizeof(int))
                        return -EINVAL;
                len = sizeof(int);
index 486ed1f0c0bc17f48dca895ebf9581aa7d69278d..0a4d73317759c9ee523d7d5482548b3171c821e6 100644 (file)
@@ -155,7 +155,7 @@ enum nlmsgerr_attrs {
 #define NETLINK_LIST_MEMBERSHIPS       9
 #define NETLINK_CAP_ACK                        10
 #define NETLINK_EXT_ACK                        11
-#define NETLINK_DUMP_STRICT_CHK                12
+#define NETLINK_GET_STRICT_CHK         12
 
 struct nl_pktinfo {
        __u32   group;