Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netlink: specs: devlink: add some(not all) missing attributes in devlink.yaml

Add some missing(not all) attributes in devlink.yaml.

Signed-off-by: Swarup Laxman Kotiaklapudi <swarupkotikalapudi@gmail.com>
Suggested-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231208182515.1206616-1-swarupkotikalapudi@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Swarup Laxman Kotiaklapudi and committed by
Jakub Kicinski
68c84289 b72137ec

+288 -89
+288 -89
Documentation/netlink/specs/devlink.yaml
··· 77 77 name: ipsec-packet-bit 78 78 - 79 79 type: enum 80 + name: rate-type 81 + entries: 82 + - 83 + name: leaf 84 + - 85 + name: node 86 + - 87 + type: enum 80 88 name: sb-threshold-type 81 89 entries: 82 90 - ··· 119 111 name: none 120 112 - 121 113 name: basic 114 + - 115 + type: enum 116 + name: dpipe-header-id 117 + entries: 118 + - 119 + name: ethernet 120 + - 121 + name: ipv4 122 + - 123 + name: ipv6 122 124 - 123 125 type: enum 124 126 name: dpipe-match-type ··· 192 174 name: trap 193 175 - 194 176 name: mirror 177 + - 178 + type: enum 179 + name: trap-type 180 + entries: 181 + - 182 + name: drop 183 + - 184 + name: exception 185 + - 186 + name: control 195 187 196 188 attribute-sets: 197 189 - ··· 222 194 name: port-type 223 195 type: u16 224 196 enum: port-type 225 - 226 - # TODO: fill in the attributes in between 227 - 197 + - 198 + name: port-desired-type 199 + type: u16 200 + - 201 + name: port-netdev-ifindex 202 + type: u32 203 + - 204 + name: port-netdev-name 205 + type: string 206 + - 207 + name: port-ibdev-name 208 + type: string 228 209 - 229 210 name: port-split-count 230 211 type: u32 231 - value: 9 232 - 233 - # TODO: fill in the attributes in between 234 - 212 + - 213 + name: port-split-group 214 + type: u32 235 215 - 236 216 name: sb-index 237 217 type: u32 238 - value: 11 239 - 240 - # TODO: fill in the attributes in between 241 - 218 + - 219 + name: sb-size 220 + type: u32 221 + - 222 + name: sb-ingress-pool-count 223 + type: u16 224 + - 225 + name: sb-egress-pool-count 226 + type: u16 227 + - 228 + name: sb-ingress-tc-count 229 + type: u16 230 + - 231 + name: sb-egress-tc-count 232 + type: u16 242 233 - 243 234 name: sb-pool-index 244 235 type: u16 245 - value: 17 246 236 - 247 237 name: sb-pool-type 248 238 type: u8 ··· 278 232 - 279 233 name: sb-tc-index 280 234 type: u16 281 - value: 22 282 - 283 - # TODO: fill in the attributes in between 284 - 235 + - 236 + name: sb-occ-cur 237 + type: u32 238 + - 239 + name: sb-occ-max 240 + type: u32 285 241 - 286 242 name: eswitch-mode 287 243 type: u16 288 - value: 25 289 244 enum: eswitch-mode 290 - 291 245 - 292 246 name: eswitch-inline-mode 293 247 type: u16 ··· 393 347 - 394 348 name: dpipe-header-id 395 349 type: u32 350 + enum: dpipe-header-id 396 351 - 397 352 name: dpipe-header-fields 398 353 type: nest ··· 428 381 - 429 382 name: eswitch-encap-mode 430 383 type: u8 431 - value: 62 432 384 enum: eswitch-encap-mode 433 385 - 434 386 name: resource-list ··· 479 433 name: port-flavour 480 434 type: u16 481 435 enum: port-flavour 482 - 483 - # TODO: fill in the attributes in between 484 - 436 + - 437 + name: port-number 438 + type: u32 439 + - 440 + name: port-split-subport-number 441 + type: u32 442 + - 443 + name: param 444 + type: nest 445 + nested-attributes: dl-param 485 446 - 486 447 name: param-name 487 448 type: string 488 - value: 81 489 - 490 - # TODO: fill in the attributes in between 491 - 449 + - 450 + name: param-generic 451 + type: flag 492 452 - 493 453 name: param-type 494 454 type: u8 495 - value: 83 496 455 497 456 # TODO: fill in the attributes in between 498 457 ··· 509 458 - 510 459 name: region-name 511 460 type: string 512 - 513 - # TODO: fill in the attributes in between 514 - 461 + - 462 + name: region-size 463 + type: u64 464 + - 465 + name: region-snapshots 466 + type: nest 467 + nested-attributes: dl-region-snapshots 468 + - 469 + name: region-snapshot 470 + type: nest 471 + nested-attributes: dl-region-snapshot 515 472 - 516 473 name: region-snapshot-id 517 474 type: u32 518 - value: 92 519 - 520 - # TODO: fill in the attributes in between 521 - 475 + - 476 + name: region-chunks 477 + type: nest 478 + nested-attributes: dl-region-chunks 479 + - 480 + name: region-chunk 481 + type: nest 482 + nested-attributes: dl-region-chunk 483 + - 484 + name: region-chunk-data 485 + type: binary 522 486 - 523 487 name: region-chunk-addr 524 488 type: u64 525 - value: 96 526 489 - 527 490 name: region-chunk-len 528 491 type: u64 ··· 567 502 - 568 503 name: info-version-value 569 504 type: string 570 - 571 - # TODO: fill in the attributes in between 572 - 505 + - 506 + name: sb-pool-cell-size 507 + type: u32 573 508 - 574 509 name: fmsg 575 510 type: nest 576 511 nested-attributes: dl-fmsg 577 - value: 106 578 512 - 579 513 name: fmsg-obj-nest-start 580 514 type: flag ··· 589 525 - 590 526 name: fmsg-obj-name 591 527 type: string 528 + - 529 + name: fmsg-obj-value-type 530 + type: u8 592 531 593 532 # TODO: fill in the attributes in between 594 533 534 + - 535 + name: health-reporter 536 + type: nest 537 + value: 114 538 + nested-attributes: dl-health-reporter 595 539 - 596 540 name: health-reporter-name 597 541 type: string 598 - value: 115 599 - 600 - # TODO: fill in the attributes in between 601 - 542 + - 543 + name: health-reporter-state 544 + type: u8 545 + - 546 + name: health-reporter-err-count 547 + type: u64 548 + - 549 + name: health-reporter-recover-count 550 + type: u64 551 + - 552 + name: health-reporter-dump-ts 553 + type: u64 602 554 - 603 555 name: health-reporter-graceful-period 604 556 type: u64 605 - value: 120 606 557 - 607 558 name: health-reporter-auto-recover 608 559 type: u8 ··· 627 548 - 628 549 name: flash-update-component 629 550 type: string 630 - 631 - # TODO: fill in the attributes in between 632 - 551 + - 552 + name: flash-update-status-msg 553 + type: string 554 + - 555 + name: flash-update-status-done 556 + type: u64 557 + - 558 + name: flash-update-status-total 559 + type: u64 633 560 - 634 561 name: port-pci-pf-number 635 562 type: u16 636 - value: 127 637 - 638 - # TODO: fill in the attributes in between 639 - 563 + - 564 + name: port-pci-vf-number 565 + type: u16 566 + - 567 + name: stats 568 + type: nest 569 + nested-attributes: dl-attr-stats 640 570 - 641 571 name: trap-name 642 572 type: string 643 - value: 130 644 573 - 645 574 name: trap-action 646 575 type: u8 647 576 enum: trap-action 648 - 649 - # TODO: fill in the attributes in between 650 - 577 + - 578 + name: trap-type 579 + type: u8 580 + enum: trap-type 581 + - 582 + name: trap-generic 583 + type: flag 584 + - 585 + name: trap-metadata 586 + type: nest 587 + nested-attributes: dl-trap-metadata 651 588 - 652 589 name: trap-group-name 653 590 type: string 654 - value: 135 655 - 656 591 - 657 592 name: reload-failed 658 593 type: u8 659 - 660 - # TODO: fill in the attributes in between 661 - 594 + - 595 + name: health-reporter-dump-ts-ns 596 + type: u64 662 597 - 663 598 name: netns-fd 664 599 type: u32 665 - value: 138 666 600 - 667 601 name: netns-pid 668 602 type: u32 669 603 - 670 604 name: netns-id 671 605 type: u32 672 - 673 - # TODO: fill in the attributes in between 674 - 675 606 - 676 607 name: health-reporter-auto-dump 677 608 type: u8 678 - value: 141 679 609 - 680 610 name: trap-policer-id 681 611 type: u32 ··· 698 610 name: port-function 699 611 type: nest 700 612 nested-attributes: dl-port-function 701 - 702 - # TODO: fill in the attributes in between 703 - 613 + - 614 + name: info-board-serial-number 615 + type: string 616 + - 617 + name: port-lanes 618 + type: u32 619 + - 620 + name: port-splittable 621 + type: u8 622 + - 623 + name: port-external 624 + type: u8 704 625 - 705 626 name: port-controller-number 706 627 type: u32 707 - value: 150 708 - 709 - # TODO: fill in the attributes in between 710 - 628 + - 629 + name: flash-update-status-timeout 630 + type: u64 711 631 - 712 632 name: flash-update-overwrite-mask 713 633 type: bitfield32 714 634 enum: flash-overwrite 715 635 enum-as-flags: True 716 - value: 152 717 636 - 718 637 name: reload-action 719 638 type: u8 ··· 768 673 type: nest 769 674 multi-attr: true 770 675 nested-attributes: dl-reload-act-stats 771 - 772 - # TODO: fill in the attributes in between 773 - 774 676 - 775 677 name: port-pci-sf-number 776 678 type: u32 777 - value: 164 778 - 779 - # TODO: fill in the attributes in between 780 - 679 + - 680 + name: rate-type 681 + type: u16 682 + enum: rate-type 781 683 - 782 684 name: rate-tx-share 783 685 type: u64 784 - value: 166 785 686 - 786 687 name: rate-tx-max 787 688 type: u64 ··· 787 696 - 788 697 name: rate-parent-node-name 789 698 type: string 790 - 791 - # TODO: fill in the attributes in between 792 - 699 + - 700 + name: region-max-snapshots 701 + type: u32 793 702 - 794 703 name: linecard-index 795 704 type: u32 796 - value: 171 797 - 798 - # TODO: fill in the attributes in between 799 - 705 + - 706 + name: linecard-state 707 + type: u8 800 708 - 801 709 name: linecard-type 802 710 type: string 803 - value: 173 711 + - 712 + name: linecard-supported-types 713 + type: nest 714 + nested-attributes: dl-linecard-supported-types 804 715 805 716 # TODO: fill in the attributes in between 806 717 ··· 829 736 name: reload-stats 830 737 - 831 738 name: remote-reload-stats 739 + 832 740 - 833 741 name: dl-reload-stats 834 742 subset-of: devlink 835 743 attributes: 836 744 - 837 745 name: reload-action-info 746 + 838 747 - 839 748 name: dl-reload-act-info 840 749 subset-of: devlink ··· 845 750 name: reload-action 846 751 - 847 752 name: reload-action-stats 753 + 848 754 - 849 755 name: dl-reload-act-stats 850 756 subset-of: devlink 851 757 attributes: 852 758 - 853 759 name: reload-stats-entry 760 + 854 761 - 855 762 name: dl-reload-stats-entry 856 763 subset-of: devlink ··· 861 764 name: reload-stats-limit 862 765 - 863 766 name: reload-stats-value 767 + 864 768 - 865 769 name: dl-info-version 866 770 subset-of: devlink ··· 870 772 name: info-version-name 871 773 - 872 774 name: info-version-value 775 + 873 776 - 874 777 name: dl-port-function 875 778 name-prefix: devlink-port-fn-attr- ··· 1105 1006 name: resource 1106 1007 1107 1008 - 1009 + name: dl-param 1010 + subset-of: devlink 1011 + attributes: 1012 + - 1013 + name: param-name 1014 + - 1015 + name: param-generic 1016 + - 1017 + name: param-type 1018 + 1019 + # TODO: fill in the attribute param-value-list 1020 + 1021 + - 1022 + name: dl-region-snapshots 1023 + subset-of: devlink 1024 + attributes: 1025 + - 1026 + name: region-snapshot 1027 + 1028 + - 1029 + name: dl-region-snapshot 1030 + subset-of: devlink 1031 + attributes: 1032 + - 1033 + name: region-snapshot-id 1034 + 1035 + - 1036 + name: dl-region-chunks 1037 + subset-of: devlink 1038 + attributes: 1039 + - 1040 + name: region-chunk 1041 + 1042 + - 1043 + name: dl-region-chunk 1044 + subset-of: devlink 1045 + attributes: 1046 + - 1047 + name: region-chunk-data 1048 + - 1049 + name: region-chunk-addr 1050 + 1051 + - 1108 1052 name: dl-fmsg 1109 1053 subset-of: devlink 1110 1054 attributes: ··· 1161 1019 name: fmsg-nest-end 1162 1020 - 1163 1021 name: fmsg-obj-name 1022 + 1023 + - 1024 + name: dl-health-reporter 1025 + subset-of: devlink 1026 + attributes: 1027 + - 1028 + name: health-reporter-name 1029 + - 1030 + name: health-reporter-state 1031 + - 1032 + name: health-reporter-err-count 1033 + - 1034 + name: health-reporter-recover-count 1035 + - 1036 + name: health-reporter-graceful-period 1037 + - 1038 + name: health-reporter-auto-recover 1039 + - 1040 + name: health-reporter-dump-ts 1041 + - 1042 + name: health-reporter-dump-ts-ns 1043 + - 1044 + name: health-reporter-auto-dump 1045 + 1046 + - 1047 + name: dl-attr-stats 1048 + name-prefix: devlink-attr- 1049 + attributes: 1050 + - name: stats-rx-packets 1051 + type: u64 1052 + value: 0 1053 + - 1054 + name: stats-rx-bytes 1055 + type: u64 1056 + - 1057 + name: stats-rx-dropped 1058 + type: u64 1059 + 1060 + - 1061 + name: dl-trap-metadata 1062 + name-prefix: devlink-attr- 1063 + attributes: 1064 + - 1065 + name: trap-metadata-type-in-port 1066 + type: flag 1067 + value: 0 1068 + - 1069 + name: trap-metadata-type-fa-cookie 1070 + type: flag 1071 + 1072 + - 1073 + name: dl-linecard-supported-types 1074 + subset-of: devlink 1075 + attributes: 1076 + - 1077 + name: linecard-type 1164 1078 1165 1079 - 1166 1080 name: dl-selftest-id ··· 1275 1077 reply: 1276 1078 value: 3 # due to a bug, port dump returns DEVLINK_CMD_NEW 1277 1079 attributes: *port-id-attrs 1080 + 1278 1081 - 1279 1082 name: port-set 1280 1083 doc: Set devlink port instances.