|
@@ -3975,11 +3975,8 @@ static int qeth_fill_buffer(struct qeth_qdio_out_q *queue,
|
|
buffer->element[element].length = hd_len;
|
|
buffer->element[element].length = hd_len;
|
|
buffer->element[element].eflags = SBAL_EFLAGS_FIRST_FRAG;
|
|
buffer->element[element].eflags = SBAL_EFLAGS_FIRST_FRAG;
|
|
buf->next_element_to_fill++;
|
|
buf->next_element_to_fill++;
|
|
- skb_pull(skb, hd_len);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* IQD */
|
|
/* IQD */
|
|
- if (offset > 0) {
|
|
|
|
|
|
+ } else if (offset) {
|
|
int element = buf->next_element_to_fill;
|
|
int element = buf->next_element_to_fill;
|
|
is_first_elem = false;
|
|
is_first_elem = false;
|
|
|
|
|
|
@@ -4049,7 +4046,8 @@ EXPORT_SYMBOL_GPL(qeth_do_send_packet_fast);
|
|
|
|
|
|
int qeth_do_send_packet(struct qeth_card *card, struct qeth_qdio_out_q *queue,
|
|
int qeth_do_send_packet(struct qeth_card *card, struct qeth_qdio_out_q *queue,
|
|
struct sk_buff *skb, struct qeth_hdr *hdr,
|
|
struct sk_buff *skb, struct qeth_hdr *hdr,
|
|
- unsigned int hd_len, int elements_needed)
|
|
|
|
|
|
+ unsigned int offset, unsigned int hd_len,
|
|
|
|
+ int elements_needed)
|
|
{
|
|
{
|
|
struct qeth_qdio_out_buffer *buffer;
|
|
struct qeth_qdio_out_buffer *buffer;
|
|
int start_index;
|
|
int start_index;
|
|
@@ -4098,7 +4096,7 @@ int qeth_do_send_packet(struct qeth_card *card, struct qeth_qdio_out_q *queue,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- tmp = qeth_fill_buffer(queue, buffer, skb, hdr, 0, hd_len);
|
|
|
|
|
|
+ tmp = qeth_fill_buffer(queue, buffer, skb, hdr, offset, hd_len);
|
|
queue->next_buf_to_fill = (queue->next_buf_to_fill + tmp) %
|
|
queue->next_buf_to_fill = (queue->next_buf_to_fill + tmp) %
|
|
QDIO_MAX_BUFFERS_PER_Q;
|
|
QDIO_MAX_BUFFERS_PER_Q;
|
|
flush_count += tmp;
|
|
flush_count += tmp;
|