From c2fdcbf6606c47d0be9709d91899a97d32f46dcf Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 3 Apr 2016 02:52:47 +0300 Subject: [PATCH] RX filters doc --- trex_rpc_server_spec.asciidoc | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/trex_rpc_server_spec.asciidoc b/trex_rpc_server_spec.asciidoc index c48df052..0fa53387 100755 --- a/trex_rpc_server_spec.asciidoc +++ b/trex_rpc_server_spec.asciidoc @@ -1059,6 +1059,46 @@ In case rx_stats feature is enabled, rx_object **must include** all rx_stats obj } +---- + + +=== Remove RX Filters +* *Name* - 'remove_rx_filters' +* *Valid States* - 'owned' +* *Description* - Post to calling stop, the client should call this function to remove + any RX filters that were attached. + this is because the server cannot know when it is safe to remove those + (after stop some packets might take time to get to arrive - RTT) +* *Paramters* +** *handler* ['string'] - unique connection handler +** *port_id* ['int'] - port id on which to remove all RX filters + +* *Result* ['object'] - {} + +[source,bash] +---- + +'Request': + +{ + "id": "1jwrw9nx", + "jsonrpc": "2.0", + "method": "remove_rx_filters", + "params": { + "handler": "ywVlqZa8", + "port_id": 3 + } +} + +'Request': + +{ + "id": "1jwrw9nx", + "jsonrpc": "2.0", + "result": {} +} + + ---- === Get Global Stats -- 2.16.6