s390/qeth: consolidate helpers for capability checking
Convert the old code to use struct qeth_ipa_caps, and while at it remove all unused helper macros. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
adee2592b6
commit
52f82bf16b
@@ -53,6 +53,16 @@ static inline bool qeth_ipa_caps_enabled(struct qeth_ipa_caps *caps, u32 mask)
|
||||
return (caps->enabled & mask) == mask;
|
||||
}
|
||||
|
||||
#define qeth_adp_supported(c, f) \
|
||||
qeth_ipa_caps_supported(&c->options.adp, f)
|
||||
#define qeth_is_supported(c, f) \
|
||||
qeth_ipa_caps_supported(&c->options.ipa4, f)
|
||||
#define qeth_is_supported6(c, f) \
|
||||
qeth_ipa_caps_supported(&c->options.ipa6, f)
|
||||
#define qeth_is_ipafunc_supported(c, prot, f) \
|
||||
((prot == QETH_PROT_IPV6) ? qeth_is_supported6(c, f) : \
|
||||
qeth_is_supported(c, f))
|
||||
|
||||
enum qeth_card_types {
|
||||
QETH_CARD_TYPE_OSD = 1,
|
||||
QETH_CARD_TYPE_IQD = 5,
|
||||
@@ -766,8 +776,7 @@ struct qeth_ipacmd_hdr {
|
||||
__u8 prim_version_no;
|
||||
__u8 param_count;
|
||||
__u16 prot_version;
|
||||
__u32 ipa_supported;
|
||||
__u32 ipa_enabled;
|
||||
struct qeth_ipa_caps assists;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/* The IPA command itself */
|
||||
|
||||
Reference in New Issue
Block a user