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

netlink: specs: correct types of legacy arrays

ethtool has some attrs which dump multiple scalars into
an attribute. The spec currently expects one attr per entry.

Fixes: a353318ebf24 ("tools: ynl: populate most of the ethtool spec")
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20230526220653.65538-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+8 -24
+8 -24
Documentation/netlink/specs/ethtool.yaml
··· 61 61 nested-attributes: bitset-bits 62 62 63 63 - 64 - name: u64-array 65 - attributes: 66 - - 67 - name: u64 68 - type: nest 69 - multi-attr: true 70 - nested-attributes: u64 71 - - 72 - name: s32-array 73 - attributes: 74 - - 75 - name: s32 76 - type: nest 77 - multi-attr: true 78 - nested-attributes: s32 79 - - 80 64 name: string 81 65 attributes: 82 66 - ··· 689 705 type: u8 690 706 - 691 707 name: corrected 692 - type: nest 693 - nested-attributes: u64-array 708 + type: binary 709 + sub-type: u64 694 710 - 695 711 name: uncorr 696 - type: nest 697 - nested-attributes: u64-array 712 + type: binary 713 + sub-type: u64 698 714 - 699 715 name: corr-bits 700 - type: nest 701 - nested-attributes: u64-array 716 + type: binary 717 + sub-type: u64 702 718 - 703 719 name: fec 704 720 attributes: ··· 811 827 type: u32 812 828 - 813 829 name: index 814 - type: nest 815 - nested-attributes: s32-array 830 + type: binary 831 + sub-type: s32 816 832 - 817 833 name: module 818 834 attributes: