From 3b2920986924b8589833e667c10d629c4478064b Mon Sep 17 00:00:00 2001 From: amar512-prog <70102514+amar512-prog@users.noreply.github.com> Date: Sun, 11 Sep 2022 18:30:13 +0530 Subject: [PATCH 1/5] Description of queue handler --- src/devices/src/virtio/block/queqe_handler.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/devices/src/virtio/block/queqe_handler.md diff --git a/src/devices/src/virtio/block/queqe_handler.md b/src/devices/src/virtio/block/queqe_handler.md new file mode 100644 index 0000000..44a66b8 --- /dev/null +++ b/src/devices/src/virtio/block/queqe_handler.md @@ -0,0 +1 @@ +Brief description of queue handlers \ No newline at end of file From 66ddd7573276979bc69bc189b84ccddb59d9f32d Mon Sep 17 00:00:00 2001 From: amar512-prog <70102514+amar512-prog@users.noreply.github.com> Date: Mon, 12 Sep 2022 01:57:42 +0530 Subject: [PATCH 2/5] Create queue-handler.md --- src/devices/src/virtio/net/queue-handler.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/devices/src/virtio/net/queue-handler.md diff --git a/src/devices/src/virtio/net/queue-handler.md b/src/devices/src/virtio/net/queue-handler.md new file mode 100644 index 0000000..7d0f733 --- /dev/null +++ b/src/devices/src/virtio/net/queue-handler.md @@ -0,0 +1,10 @@ +Brief description of queue handlers +init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN except TAPFD may be EVENTSET::EDGE_TRIGGERED +process: + check valid events by matching following values: + 1. events.event_set() == EventSet::IN (| EVENTSET::EDGE_TRIGGERED in case of TAPFD) + 2. events.data() == X_DATA (X may be TAPFD, RX_IOEVENT or TX_IOEVENT) + 3. self.ioeventfd.read().is_err() + 4. inorderhander process_queue() is giving error (queue may be of tap, rx or tx) + in case of not valid event, remove the event from op. +handle_error: remove all events from ops. From 662881ee0be608fc27f1773bc879630de0fd25ef Mon Sep 17 00:00:00 2001 From: amar512-prog <70102514+amar512-prog@users.noreply.github.com> Date: Mon, 12 Sep 2022 01:59:43 +0530 Subject: [PATCH 3/5] Update queue-handler.md --- src/devices/src/virtio/net/queue-handler.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/devices/src/virtio/net/queue-handler.md b/src/devices/src/virtio/net/queue-handler.md index 7d0f733..a0cdc6f 100644 --- a/src/devices/src/virtio/net/queue-handler.md +++ b/src/devices/src/virtio/net/queue-handler.md @@ -1,10 +1,10 @@ -Brief description of queue handlers -init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN except TAPFD may be EVENTSET::EDGE_TRIGGERED -process: - check valid events by matching following values: - 1. events.event_set() == EventSet::IN (| EVENTSET::EDGE_TRIGGERED in case of TAPFD) - 2. events.data() == X_DATA (X may be TAPFD, RX_IOEVENT or TX_IOEVENT) - 3. self.ioeventfd.read().is_err() - 4. inorderhander process_queue() is giving error (queue may be of tap, rx or tx) - in case of not valid event, remove the event from op. -handle_error: remove all events from ops. +Brief description of queue handlers
+init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN except TAPFD may be EVENTSET::EDGE_TRIGGERED
+process:
+ check valid events by matching following values:
+ 1. events.event_set() == EventSet::IN (| EVENTSET::EDGE_TRIGGERED in case of TAPFD)
+ 2. events.data() == X_DATA (X may be TAPFD, RX_IOEVENT or TX_IOEVENT)
+ 3. self.ioeventfd.read().is_err()
+ 4. inorderhander process_queue() is giving error (queue may be of tap, rx or tx)
+ in case of not valid event, remove the event from op.
+handle_error: remove all events from ops.
From ab86a9a3a6992ae50cc7b4e7910a01b342b0a758 Mon Sep 17 00:00:00 2001 From: amar512-prog <70102514+amar512-prog@users.noreply.github.com> Date: Mon, 12 Sep 2022 02:12:27 +0530 Subject: [PATCH 4/5] Update queue-handler.md --- src/devices/src/virtio/net/queue-handler.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/devices/src/virtio/net/queue-handler.md b/src/devices/src/virtio/net/queue-handler.md index a0cdc6f..e6d4d33 100644 --- a/src/devices/src/virtio/net/queue-handler.md +++ b/src/devices/src/virtio/net/queue-handler.md @@ -1,10 +1,9 @@ -Brief description of queue handlers
-init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN except TAPFD may be EVENTSET::EDGE_TRIGGERED
-process:
- check valid events by matching following values:
- 1. events.event_set() == EventSet::IN (| EVENTSET::EDGE_TRIGGERED in case of TAPFD)
- 2. events.data() == X_DATA (X may be TAPFD, RX_IOEVENT or TX_IOEVENT)
- 3. self.ioeventfd.read().is_err()
- 4. inorderhander process_queue() is giving error (queue may be of tap, rx or tx)
- in case of not valid event, remove the event from op.
-handle_error: remove all events from ops.
+Brief description of queue handlers
+init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN except TAPFD may be EVENTSET::EDGE\_TRIGGERED
+process: check valid events by matching following values:
+ 1. events.event\_set() == EventSet::IN (| EVENTSET::EDGE\_TRIGGERED in case of TAPFD) + 2. events.data() == X\_DATA (X may be TAPFD, RX\_IOEVENT or TX\_IOEVENT) + 3. self.ioeventfd.read().is\_err() + 4. inorderhander process\_queue() is giving error (queue may be of tap, rx or tx)
+In case of not valid event, remove the event from op.
+handle\_error: remove all events from ops. From aa40ec1f7dc0913bf95daa87dd5cb2f77667c4ba Mon Sep 17 00:00:00 2001 From: amar512-prog <70102514+amar512-prog@users.noreply.github.com> Date: Mon, 12 Sep 2022 02:17:30 +0530 Subject: [PATCH 5/5] Update queqe_handler.md --- src/devices/src/virtio/block/queqe_handler.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/devices/src/virtio/block/queqe_handler.md b/src/devices/src/virtio/block/queqe_handler.md index 44a66b8..4787ee9 100644 --- a/src/devices/src/virtio/block/queqe_handler.md +++ b/src/devices/src/virtio/block/queqe_handler.md @@ -1 +1,9 @@ -Brief description of queue handlers \ No newline at end of file +Brief description of queue handlers +init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN +process: + check valid events by matching following values: + 1. events.event\_set() == EventSet::IN + 2. events.data() == IOEVENT_DATA + 3. self.ioeventfd.read().is\_err() + 4. inorderhander process\_queue() is giving error + in case of not valid event, remove the event from op.