net: netlink: rename NETLINK_DUMP_STRICT_CHK -> NETLINK_GET_STRICT_CHK
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>
This commit is contained in:

committed by
David S. Miller

parent
c3db8d5310
commit
d3e8869ec8
@@ -155,7 +155,7 @@ enum nlmsgerr_attrs {
|
|||||||
#define NETLINK_LIST_MEMBERSHIPS 9
|
#define NETLINK_LIST_MEMBERSHIPS 9
|
||||||
#define NETLINK_CAP_ACK 10
|
#define NETLINK_CAP_ACK 10
|
||||||
#define NETLINK_EXT_ACK 11
|
#define NETLINK_EXT_ACK 11
|
||||||
#define NETLINK_DUMP_STRICT_CHK 12
|
#define NETLINK_GET_STRICT_CHK 12
|
||||||
|
|
||||||
struct nl_pktinfo {
|
struct nl_pktinfo {
|
||||||
__u32 group;
|
__u32 group;
|
||||||
|
@@ -1706,7 +1706,7 @@ static int netlink_setsockopt(struct socket *sock, int level, int optname,
|
|||||||
nlk->flags &= ~NETLINK_F_EXT_ACK;
|
nlk->flags &= ~NETLINK_F_EXT_ACK;
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
case NETLINK_DUMP_STRICT_CHK:
|
case NETLINK_GET_STRICT_CHK:
|
||||||
if (val)
|
if (val)
|
||||||
nlk->flags |= NETLINK_F_STRICT_CHK;
|
nlk->flags |= NETLINK_F_STRICT_CHK;
|
||||||
else
|
else
|
||||||
@@ -1806,7 +1806,7 @@ static int netlink_getsockopt(struct socket *sock, int level, int optname,
|
|||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
case NETLINK_DUMP_STRICT_CHK:
|
case NETLINK_GET_STRICT_CHK:
|
||||||
if (len < sizeof(int))
|
if (len < sizeof(int))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
len = sizeof(int);
|
len = sizeof(int);
|
||||||
|
@@ -155,7 +155,7 @@ enum nlmsgerr_attrs {
|
|||||||
#define NETLINK_LIST_MEMBERSHIPS 9
|
#define NETLINK_LIST_MEMBERSHIPS 9
|
||||||
#define NETLINK_CAP_ACK 10
|
#define NETLINK_CAP_ACK 10
|
||||||
#define NETLINK_EXT_ACK 11
|
#define NETLINK_EXT_ACK 11
|
||||||
#define NETLINK_DUMP_STRICT_CHK 12
|
#define NETLINK_GET_STRICT_CHK 12
|
||||||
|
|
||||||
struct nl_pktinfo {
|
struct nl_pktinfo {
|
||||||
__u32 group;
|
__u32 group;
|
||||||
|
Reference in New Issue
Block a user