diff options
Diffstat (limited to 'net/tipc/config.c')
-rw-r--r-- | net/tipc/config.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c index 8de97ddb0427..05dc102300ae 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c | |||
@@ -301,19 +301,6 @@ static struct sk_buff *cfg_set_max_nodes(void) | |||
301 | return tipc_cfg_reply_none(); | 301 | return tipc_cfg_reply_none(); |
302 | } | 302 | } |
303 | 303 | ||
304 | static struct sk_buff *cfg_set_max_slaves(void) | ||
305 | { | ||
306 | u32 value; | ||
307 | |||
308 | if (!TLV_CHECK(req_tlv_area, req_tlv_space, TIPC_TLV_UNSIGNED)) | ||
309 | return tipc_cfg_reply_error_string(TIPC_CFG_TLV_ERROR); | ||
310 | value = ntohl(*(__be32 *)TLV_DATA(req_tlv_area)); | ||
311 | if (value != 0) | ||
312 | return tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED | ||
313 | " (max secondary nodes fixed at 0)"); | ||
314 | return tipc_cfg_reply_none(); | ||
315 | } | ||
316 | |||
317 | static struct sk_buff *cfg_set_netid(void) | 304 | static struct sk_buff *cfg_set_netid(void) |
318 | { | 305 | { |
319 | u32 value; | 306 | u32 value; |
@@ -439,9 +426,6 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area | |||
439 | case TIPC_CMD_SET_MAX_NODES: | 426 | case TIPC_CMD_SET_MAX_NODES: |
440 | rep_tlv_buf = cfg_set_max_nodes(); | 427 | rep_tlv_buf = cfg_set_max_nodes(); |
441 | break; | 428 | break; |
442 | case TIPC_CMD_SET_MAX_SLAVES: | ||
443 | rep_tlv_buf = cfg_set_max_slaves(); | ||
444 | break; | ||
445 | case TIPC_CMD_SET_NETID: | 429 | case TIPC_CMD_SET_NETID: |
446 | rep_tlv_buf = cfg_set_netid(); | 430 | rep_tlv_buf = cfg_set_netid(); |
447 | break; | 431 | break; |
@@ -463,9 +447,6 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area | |||
463 | case TIPC_CMD_GET_MAX_NODES: | 447 | case TIPC_CMD_GET_MAX_NODES: |
464 | rep_tlv_buf = tipc_cfg_reply_unsigned(tipc_max_nodes); | 448 | rep_tlv_buf = tipc_cfg_reply_unsigned(tipc_max_nodes); |
465 | break; | 449 | break; |
466 | case TIPC_CMD_GET_MAX_SLAVES: | ||
467 | rep_tlv_buf = tipc_cfg_reply_unsigned(tipc_max_slaves); | ||
468 | break; | ||
469 | case TIPC_CMD_GET_NETID: | 450 | case TIPC_CMD_GET_NETID: |
470 | rep_tlv_buf = tipc_cfg_reply_unsigned(tipc_net_id); | 451 | rep_tlv_buf = tipc_cfg_reply_unsigned(tipc_net_id); |
471 | break; | 452 | break; |
@@ -475,6 +456,8 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area | |||
475 | break; | 456 | break; |
476 | case TIPC_CMD_SET_MAX_ZONES: | 457 | case TIPC_CMD_SET_MAX_ZONES: |
477 | case TIPC_CMD_GET_MAX_ZONES: | 458 | case TIPC_CMD_GET_MAX_ZONES: |
459 | case TIPC_CMD_SET_MAX_SLAVES: | ||
460 | case TIPC_CMD_GET_MAX_SLAVES: | ||
478 | rep_tlv_buf = tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED | 461 | rep_tlv_buf = tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED |
479 | " (obsolete command)"); | 462 | " (obsolete command)"); |
480 | break; | 463 | break; |