diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-30 17:36:38 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-30 17:36:38 +0100 |
| commit | 2b42fdc898d8300c3f737e1c6e9e29763566e4e7 (patch) | |
| tree | 94dca0ee62a5e056af5b91ab455b411ac56368d5 /sys/linux/gen/amd64.go | |
| parent | f7d5ee2d34e7d11db1f66f7a5ded291bd7a6f511 (diff) | |
sys/linux: detail ifla_vf_policy/ifla_port_policy/ifla_xdp_policy
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 200 |
1 files changed, 195 insertions, 5 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index b04f30393..aa47f8449 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -6503,6 +6503,77 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_GROUP, int16], int32]"}, FldName: "IFLA_GROUP"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IF_NETNSID, int16], netns_id]"}, FldName: "IFLA_IF_NETNSID"}, }}}, + {Key: StructKey{Name: "ifla_port_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_port_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_VF, int16], int32]"}, FldName: "IFLA_PORT_VF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_PROFILE, int16], string]"}, FldName: "IFLA_PORT_PROFILE"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_INSTANCE_UUID, int16], uuid_t]"}, FldName: "IFLA_PORT_INSTANCE_UUID"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_HOST_UUID, int16], uuid_t]"}, FldName: "IFLA_PORT_HOST_UUID"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_REQUEST, int16], int8]"}, FldName: "IFLA_PORT_REQUEST"}, + }}}, + {Key: StructKey{Name: "ifla_vf_guid"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_guid", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "guid", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_link_state"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_link_state", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "link_state", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_mac"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_mac", TypeSize: 36}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &UnionType{Key: StructKey{Name: "mac_addr"}, FldName: "mac"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", TypeSize: 26}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 26, RangeEnd: 26}, + }}}, + {Key: StructKey{Name: "ifla_vf_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_MAC, int16], ifla_vf_mac]"}, FldName: "IFLA_VF_MAC"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_VLAN, int16], ifla_vf_vlan]"}, FldName: "IFLA_VF_VLAN"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_VLAN_LIST, int16], array[nlattr[IFLA_VF_VLAN_INFO, ifla_vf_vlan_info]]]"}, FldName: "IFLA_VF_VLAN_LIST"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_TX_RATE, int16], ifla_vf_tx_rate]"}, FldName: "IFLA_VF_TX_RATE"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_SPOOFCHK, int16], ifla_vf_spoofchk]"}, FldName: "IFLA_VF_SPOOFCHK"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_RATE, int16], ifla_vf_rate]"}, FldName: "IFLA_VF_RATE"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_LINK_STATE, int16], ifla_vf_link_state]"}, FldName: "IFLA_VF_LINK_STATE"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_RSS_QUERY_EN, int16], ifla_vf_rss_query_en]"}, FldName: "IFLA_VF_RSS_QUERY_EN"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_TRUST, int16], ifla_vf_trust]"}, FldName: "IFLA_VF_TRUST"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_IB_NODE_GUID, int16], ifla_vf_guid]"}, FldName: "IFLA_VF_IB_NODE_GUID"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_IB_PORT_GUID, int16], ifla_vf_guid]"}, FldName: "IFLA_VF_IB_PORT_GUID"}, + }}}, + {Key: StructKey{Name: "ifla_vf_rate"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_rate", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "min_tx_rate", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max_tx_rate", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_rss_query_en"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_rss_query_en", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "setting", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_spoofchk"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_spoofchk", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "setting", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_trust"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_trust", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "setting", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_tx_rate"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_tx_rate", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "rate", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_vlan"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_vlan", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vlan", TypeSize: 4}}, Kind: 2, RangeEnd: 4095}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "qos", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "ifla_vf_vlan_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_vf_vlan_info", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vf", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vlan", TypeSize: 4}}, Kind: 2, RangeEnd: 4095}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "qos", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifla_vf_vlan_proto", FldName: "vlan_proto", TypeSize: 2}, ArgFormat: 1}, Vals: []uint64{33024, 34984}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }}}, + {Key: StructKey{Name: "ifla_xdp_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifla_xdp_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_XDP_FD, int16], bpf_prog]"}, FldName: "IFLA_XDP_FD"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_XDP_FLAGS, int16], flags[ifla_xdp_flags, int32]]"}, FldName: "IFLA_XDP_FLAGS"}, + }}}, {Key: StructKey{Name: "ifmap", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifmap", TypeSize: 24, ArgDir: 2}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "mem_start", TypeSize: 8, ArgDir: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "mem_end", TypeSize: 8, ArgDir: 2}}}, @@ -13704,10 +13775,36 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 36}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Kind: 1, RangeEnd: 32}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_HOST_UUID, int16], uuid_t]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PORT_HOST_UUID, int16], uuid_t]", TypeSize: 20}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_INSTANCE_UUID, int16], uuid_t]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PORT_INSTANCE_UUID, int16], uuid_t]", TypeSize: 20}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_PROFILE, int16], string]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PORT_PROFILE, int16], string]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "payload", IsVarlen: true}, Kind: 2}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_REQUEST, int16], int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PORT_REQUEST, int16], int8]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_SELF, int16], array[ifla_port_policy]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PORT_SELF, int16], array[ifla_port_policy]]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 25}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "nl_generic_attr"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "ifla_port_policy"}}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_PORT_VF, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PORT_VF, int16], int32]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_PROMISCUITY, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_PROMISCUITY, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -13730,21 +13827,81 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 22}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_INFO, int16], array[ifla_vf_policy]]"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_IB_NODE_GUID, int16], ifla_vf_guid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_IB_NODE_GUID, int16], ifla_vf_guid]", TypeSize: 20}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 10}, + &StructType{Key: StructKey{Name: "ifla_vf_guid"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_IB_PORT_GUID, int16], ifla_vf_guid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_IB_PORT_GUID, int16], ifla_vf_guid]", TypeSize: 20}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 11}, + &StructType{Key: StructKey{Name: "ifla_vf_guid"}, FldName: "payload"}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_INFO, int16], array[ifla_vf_policy]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_INFO, int16], array[ifla_vf_policy]]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "nl_generic_attr"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "ifla_vf_policy"}}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_LINK_STATE, int16], ifla_vf_link_state]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_LINK_STATE, int16], ifla_vf_link_state]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &StructType{Key: StructKey{Name: "ifla_vf_link_state"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_MAC, int16], ifla_vf_mac]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_MAC, int16], ifla_vf_mac]", TypeSize: 40}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "ifla_vf_mac"}, FldName: "payload"}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_PORT, int16], array[ifla_port_policy]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_PORT, int16], array[ifla_port_policy]]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "nl_generic_attr"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "ifla_port_policy"}}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_PORTS, int16], array[nlattr[IFLA_VF_PORT, array[ifla_port_policy]]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_PORTS, int16], array[nlattr[IFLA_VF_PORT, array[ifla_port_policy]]]]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 24}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_PORT, int16], array[ifla_port_policy]]"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_RATE, int16], ifla_vf_rate]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_RATE, int16], ifla_vf_rate]", TypeSize: 16}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &StructType{Key: StructKey{Name: "ifla_vf_rate"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_RSS_QUERY_EN, int16], ifla_vf_rss_query_en]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_RSS_QUERY_EN, int16], ifla_vf_rss_query_en]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 7}, + &StructType{Key: StructKey{Name: "ifla_vf_rss_query_en"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_SPOOFCHK, int16], ifla_vf_spoofchk]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_SPOOFCHK, int16], ifla_vf_spoofchk]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &StructType{Key: StructKey{Name: "ifla_vf_spoofchk"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_TRUST, int16], ifla_vf_trust]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_TRUST, int16], ifla_vf_trust]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 9}, + &StructType{Key: StructKey{Name: "ifla_vf_trust"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_TX_RATE, int16], ifla_vf_tx_rate]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_TX_RATE, int16], ifla_vf_tx_rate]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &StructType{Key: StructKey{Name: "ifla_vf_tx_rate"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_VLAN, int16], ifla_vf_vlan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_VLAN, int16], ifla_vf_vlan]", TypeSize: 16}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &StructType{Key: StructKey{Name: "ifla_vf_vlan"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_VLAN_INFO, int16], ifla_vf_vlan_info]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_VLAN_INFO, int16], ifla_vf_vlan_info]", TypeSize: 20}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "ifla_vf_vlan_info"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_VF_VLAN_LIST, int16], array[nlattr[IFLA_VF_VLAN_INFO, ifla_vf_vlan_info]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VF_VLAN_LIST, int16], array[nlattr[IFLA_VF_VLAN_INFO, ifla_vf_vlan_info]]]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 12}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VF_VLAN_INFO, int16], ifla_vf_vlan_info]"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, @@ -13793,7 +13950,17 @@ var structDescs_amd64 = []*KeyedStruct{ {Key: StructKey{Name: "nlattr_t[const[IFLA_XDP, int16], array[ifla_xdp_policy]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_XDP, int16], array[ifla_xdp_policy]]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 43}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "nl_generic_attr"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "ifla_xdp_policy"}}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_XDP_FD, int16], bpf_prog]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_XDP_FD, int16], bpf_prog]", TypeSize: 76}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "bpf_prog"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[IFLA_XDP_FLAGS, int16], flags[ifla_xdp_flags, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_XDP_FLAGS, int16], flags[ifla_xdp_flags, int32]]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifla_xdp_flags", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IPVS_CMD_ATTR_DAEMON, int16], array[ip_vs_daemon_policy]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IPVS_CMD_ATTR_DAEMON, int16], array[ip_vs_daemon_policy]]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -41455,7 +41622,12 @@ var consts_amd64 = []ConstValue{ {Name: "IFLA_OPERSTATE", Value: 16}, {Name: "IFLA_PHYS_PORT_ID", Value: 34}, {Name: "IFLA_PHYS_SWITCH_ID", Value: 36}, + {Name: "IFLA_PORT_HOST_UUID", Value: 5}, + {Name: "IFLA_PORT_INSTANCE_UUID", Value: 4}, + {Name: "IFLA_PORT_PROFILE", Value: 2}, + {Name: "IFLA_PORT_REQUEST", Value: 6}, {Name: "IFLA_PORT_SELF", Value: 25}, + {Name: "IFLA_PORT_VF", Value: 1}, {Name: "IFLA_PROMISCUITY", Value: 30}, {Name: "IFLA_PROTO_DOWN", Value: 39}, {Name: "IFLA_STATS_AF_SPEC", Value: 5}, @@ -41466,9 +41638,21 @@ var consts_amd64 = []ConstValue{ {Name: "IFLA_STATS_UNSPEC"}, {Name: "IFLA_TXQLEN", Value: 13}, {Name: "IFLA_VFINFO_LIST", Value: 22}, + {Name: "IFLA_VF_IB_NODE_GUID", Value: 10}, + {Name: "IFLA_VF_IB_PORT_GUID", Value: 11}, {Name: "IFLA_VF_INFO", Value: 1}, + {Name: "IFLA_VF_LINK_STATE", Value: 5}, + {Name: "IFLA_VF_MAC", Value: 1}, {Name: "IFLA_VF_PORT", Value: 1}, {Name: "IFLA_VF_PORTS", Value: 24}, + {Name: "IFLA_VF_RATE", Value: 6}, + {Name: "IFLA_VF_RSS_QUERY_EN", Value: 7}, + {Name: "IFLA_VF_SPOOFCHK", Value: 4}, + {Name: "IFLA_VF_TRUST", Value: 9}, + {Name: "IFLA_VF_TX_RATE", Value: 3}, + {Name: "IFLA_VF_VLAN", Value: 2}, + {Name: "IFLA_VF_VLAN_INFO", Value: 1}, + {Name: "IFLA_VF_VLAN_LIST", Value: 12}, {Name: "IFLA_VTI_FWMARK", Value: 6}, {Name: "IFLA_VTI_IKEY", Value: 2}, {Name: "IFLA_VTI_LINK", Value: 1}, @@ -41477,6 +41661,8 @@ var consts_amd64 = []ConstValue{ {Name: "IFLA_VTI_REMOTE", Value: 5}, {Name: "IFLA_WEIGHT", Value: 15}, {Name: "IFLA_XDP", Value: 43}, + {Name: "IFLA_XDP_FD", Value: 1}, + {Name: "IFLA_XDP_FLAGS", Value: 3}, {Name: "IFNAMSIZ", Value: 16}, {Name: "IFREQ_SIZE", Value: 40}, {Name: "IGMPV2_HOST_MEMBERSHIP_REPORT", Value: 22}, @@ -46125,6 +46311,10 @@ var consts_amd64 = []ConstValue{ {Name: "XATTR_CREATE", Value: 1}, {Name: "XATTR_REPLACE", Value: 2}, {Name: "XDP_COPY", Value: 2}, + {Name: "XDP_FLAGS_DRV_MODE", Value: 4}, + {Name: "XDP_FLAGS_HW_MODE", Value: 8}, + {Name: "XDP_FLAGS_SKB_MODE", Value: 2}, + {Name: "XDP_FLAGS_UPDATE_IF_NOEXIST", Value: 1}, {Name: "XDP_MMAP_OFFSETS", Value: 1}, {Name: "XDP_MMAP_OFFSETS_SIZE", Value: 96}, {Name: "XDP_PGOFF_RX_RING"}, @@ -46752,4 +46942,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "b400283a2f6ddcb1972ebd5dc803010598363005" +const revision_amd64 = "eff88f7e644b80ac279853925af8c7edfd13ff5b" |
