qeth: Display adjacent switch attributes
Add support to display the adjacent switch port's forwarding attributes. Currently supports info on forwarding modes '802.1' and 'rr' (reflective relay). Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com> Reviewed-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
240524089d
commit
45cbb2e499
@@ -242,6 +242,7 @@ enum qeth_ipa_setadp_cmd {
|
||||
IPA_SETADP_SET_DIAG_ASSIST = 0x00002000L,
|
||||
IPA_SETADP_SET_ACCESS_CONTROL = 0x00010000L,
|
||||
IPA_SETADP_QUERY_OAT = 0x00080000L,
|
||||
IPA_SETADP_QUERY_SWITCH_ATTRIBUTES = 0x00100000L,
|
||||
};
|
||||
enum qeth_ipa_mac_ops {
|
||||
CHANGE_ADDR_READ_MAC = 0,
|
||||
@@ -431,6 +432,21 @@ struct qeth_query_card_info {
|
||||
__u32 reserved2;
|
||||
};
|
||||
|
||||
#define QETH_SWITCH_FORW_802_1 0x00000001
|
||||
#define QETH_SWITCH_FORW_REFL_RELAY 0x00000002
|
||||
#define QETH_SWITCH_CAP_RTE 0x00000004
|
||||
#define QETH_SWITCH_CAP_ECP 0x00000008
|
||||
#define QETH_SWITCH_CAP_VDP 0x00000010
|
||||
|
||||
struct qeth_query_switch_attributes {
|
||||
__u8 version;
|
||||
__u8 reserved1;
|
||||
__u16 reserved2;
|
||||
__u32 capabilities;
|
||||
__u32 settings;
|
||||
__u8 reserved3[8];
|
||||
};
|
||||
|
||||
struct qeth_ipacmd_setadpparms_hdr {
|
||||
__u32 supp_hw_cmds;
|
||||
__u32 reserved1;
|
||||
@@ -452,6 +468,7 @@ struct qeth_ipacmd_setadpparms {
|
||||
struct qeth_set_access_ctrl set_access_ctrl;
|
||||
struct qeth_query_oat query_oat;
|
||||
struct qeth_query_card_info card_info;
|
||||
struct qeth_query_switch_attributes query_switch_attributes;
|
||||
__u32 mode;
|
||||
} data;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
Reference in New Issue
Block a user