Commit 028cf917 authored by Ursula Braun's avatar Ursula Braun Committed by Martin Schwidefsky
Browse files

[S390] Hipersocket multicast queue: make sure outbound handler is called



A HiperSocket multicast queue works asynchronously. When sending
buffers, the buffer state change from PRIMED to EMPTY may happen
delayed. Reschedule the checking for changes in the outbound queue,
if there are still PRIMED buffers.
Signed-off-by: default avatarUrsula Braun <braunu@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 86b22470
...@@ -979,12 +979,11 @@ __qdio_outbound_processing(struct qdio_q *q) ...@@ -979,12 +979,11 @@ __qdio_outbound_processing(struct qdio_q *q)
if (q->is_iqdio_q) { if (q->is_iqdio_q) {
/* /*
* for asynchronous queues, we better check, if the fill * for asynchronous queues, we better check, if the sent
* level is too high. for synchronous queues, the fill * buffer is already switched from PRIMED to EMPTY.
* level will never be that high.
*/ */
if (atomic_read(&q->number_of_buffers_used)> if ((q->queue_type == QDIO_IQDIO_QFMT_ASYNCH) &&
IQDIO_FILL_LEVEL_TO_POLL) !qdio_is_outbound_q_done(q))
qdio_mark_q(q); qdio_mark_q(q);
} else if (!q->hydra_gives_outbound_pcis) } else if (!q->hydra_gives_outbound_pcis)
...@@ -1825,6 +1824,10 @@ qdio_fill_qs(struct qdio_irq *irq_ptr, struct ccw_device *cdev, ...@@ -1825,6 +1824,10 @@ qdio_fill_qs(struct qdio_irq *irq_ptr, struct ccw_device *cdev,
q->sbal[j]=*(outbound_sbals_array++); q->sbal[j]=*(outbound_sbals_array++);
q->queue_type=q_format; q->queue_type=q_format;
if ((q->queue_type == QDIO_IQDIO_QFMT) &&
(no_output_qs > 1) &&
(i == no_output_qs-1))
q->queue_type = QDIO_IQDIO_QFMT_ASYNCH;
q->int_parm=int_parm; q->int_parm=int_parm;
q->is_input_q=0; q->is_input_q=0;
q->schid = irq_ptr->schid; q->schid = irq_ptr->schid;
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#define QDIO_QETH_QFMT 0 #define QDIO_QETH_QFMT 0
#define QDIO_ZFCP_QFMT 1 #define QDIO_ZFCP_QFMT 1
#define QDIO_IQDIO_QFMT 2 #define QDIO_IQDIO_QFMT 2
#define QDIO_IQDIO_QFMT_ASYNCH 3
struct qdio_buffer_element{ struct qdio_buffer_element{
unsigned int flags; unsigned int flags;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment