| 609 | } |
| 610 | |
| 611 | static void |
| 612 | cli_ip6_addr(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused) |
| 613 | { |
| 614 | struct ethdev_ip6_cmd_tokens *res = parsed_result; |
| 615 | struct ipv6_addr_config config; |
| 616 | int rc = -EINVAL; |
| 617 | |
| 618 | if (parser_ip6_read(config.ip, res->ip)) { |
| 619 | printf(MSG_ARG_INVALID, "ip"); |
| 620 | return; |
| 621 | } |
| 622 | |
| 623 | if (parser_ip6_read(config.mask, res->mask)) { |
| 624 | printf(MSG_ARG_INVALID, "netmask"); |
| 625 | return; |
| 626 | } |
| 627 | |
| 628 | rc = ethdev_ip6_addr_add(res->dev, &config); |
| 629 | if (rc < 0) |
| 630 | printf(MSG_CMD_FAIL, res->cmd); |
| 631 | } |
| 632 | |
| 633 | static void |
| 634 | cli_ethdev_show(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused) |
nothing calls this directly
no test coverage detected