Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git] / drivers / s390 / net / qeth_core.h
index 4abc79d..be1d5b5 100644 (file)
@@ -578,6 +578,11 @@ struct qeth_cmd_buffer {
        void (*callback) (struct qeth_channel *, struct qeth_cmd_buffer *);
 };
 
+static inline struct qeth_ipa_cmd *__ipa_cmd(struct qeth_cmd_buffer *iob)
+{
+       return (struct qeth_ipa_cmd *)(iob->data + IPA_PDU_HEADER_SIZE);
+}
+
 /**
  * definition of a qeth channel, used for read and write
  */