diff options
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 8dd83d9209..699ac11deb 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h | |||
@@ -758,27 +758,6 @@ static inline int qeth_get_micros(void) | |||
758 | return (int) (get_clock() >> 12); | 758 | return (int) (get_clock() >> 12); |
759 | } | 759 | } |
760 | 760 | ||
761 | static inline void *qeth_push_skb(struct qeth_card *card, struct sk_buff *skb, | ||
762 | int size) | ||
763 | { | ||
764 | void *hdr; | ||
765 | |||
766 | hdr = (void *) skb_push(skb, size); | ||
767 | /* | ||
768 | * sanity check, the Linux memory allocation scheme should | ||
769 | * never present us cases like this one (the qdio header size plus | ||
770 | * the first 40 bytes of the paket cross a 4k boundary) | ||
771 | */ | ||
772 | if ((((unsigned long) hdr) & (~(PAGE_SIZE - 1))) != | ||
773 | (((unsigned long) hdr + size + | ||
774 | QETH_IP_HEADER_SIZE) & (~(PAGE_SIZE - 1)))) { | ||
775 | PRINT_ERR("Misaligned packet on interface %s. Discarded.", | ||
776 | QETH_CARD_IFNAME(card)); | ||
777 | return NULL; | ||
778 | } | ||
779 | return hdr; | ||
780 | } | ||
781 | |||
782 | static inline int qeth_get_ip_version(struct sk_buff *skb) | 761 | static inline int qeth_get_ip_version(struct sk_buff *skb) |
783 | { | 762 | { |
784 | switch (skb->protocol) { | 763 | switch (skb->protocol) { |
@@ -791,6 +770,12 @@ static inline int qeth_get_ip_version(struct sk_buff *skb) | |||
791 | } | 770 | } |
792 | } | 771 | } |
793 | 772 | ||
773 | static inline void qeth_put_buffer_pool_entry(struct qeth_card *card, | ||
774 | struct qeth_buffer_pool_entry *entry) | ||
775 | { | ||
776 | list_add_tail(&entry->list, &card->qdio.in_buf_pool.entry_list); | ||
777 | } | ||
778 | |||
794 | struct qeth_eddp_context; | 779 | struct qeth_eddp_context; |
795 | extern struct ccwgroup_driver qeth_l2_ccwgroup_driver; | 780 | extern struct ccwgroup_driver qeth_l2_ccwgroup_driver; |
796 | extern struct ccwgroup_driver qeth_l3_ccwgroup_driver; | 781 | extern struct ccwgroup_driver qeth_l3_ccwgroup_driver; |
@@ -828,8 +813,6 @@ struct qeth_cmd_buffer *qeth_get_ipacmd_buffer(struct qeth_card *, | |||
828 | int qeth_query_setadapterparms(struct qeth_card *); | 813 | int qeth_query_setadapterparms(struct qeth_card *); |
829 | int qeth_check_qdio_errors(struct qdio_buffer *, unsigned int, | 814 | int qeth_check_qdio_errors(struct qdio_buffer *, unsigned int, |
830 | unsigned int, const char *); | 815 | unsigned int, const char *); |
831 | void qeth_put_buffer_pool_entry(struct qeth_card *, | ||
832 | struct qeth_buffer_pool_entry *); | ||
833 | void qeth_queue_input_buffer(struct qeth_card *, int); | 816 | void qeth_queue_input_buffer(struct qeth_card *, int); |
834 | struct sk_buff *qeth_core_get_next_skb(struct qeth_card *, | 817 | struct sk_buff *qeth_core_get_next_skb(struct qeth_card *, |
835 | struct qdio_buffer *, struct qdio_buffer_element **, int *, | 818 | struct qdio_buffer *, struct qdio_buffer_element **, int *, |
@@ -865,8 +848,6 @@ int qeth_send_control_data(struct qeth_card *, int, struct qeth_cmd_buffer *, | |||
865 | void *reply_param); | 848 | void *reply_param); |
866 | int qeth_get_cast_type(struct qeth_card *, struct sk_buff *); | 849 | int qeth_get_cast_type(struct qeth_card *, struct sk_buff *); |
867 | int qeth_get_priority_queue(struct qeth_card *, struct sk_buff *, int, int); | 850 | int qeth_get_priority_queue(struct qeth_card *, struct sk_buff *, int, int); |
868 | struct sk_buff *qeth_prepare_skb(struct qeth_card *, struct sk_buff *, | ||
869 | struct qeth_hdr **); | ||
870 | int qeth_get_elements_no(struct qeth_card *, void *, struct sk_buff *, int); | 851 | int qeth_get_elements_no(struct qeth_card *, void *, struct sk_buff *, int); |
871 | int qeth_do_send_packet_fast(struct qeth_card *, struct qeth_qdio_out_q *, | 852 | int qeth_do_send_packet_fast(struct qeth_card *, struct qeth_qdio_out_q *, |
872 | struct sk_buff *, struct qeth_hdr *, int, | 853 | struct sk_buff *, struct qeth_hdr *, int, |