Re: [vpp-dev] hqos configuration in vpp (Connection refused)

2018-09-13 Thread Alex
The same problem with you. Have you been solved the problem?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10483): https://lists.fd.io/g/vpp-dev/message/10483
Mute This Topic: https://lists.fd.io/mt/25396306/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Formatted elogs more than 20 bytes

2016-12-04 Thread Alex Salig
1. I need to log some events with elog which requires more than 20 bytes,
therefore I changed the vppinfra/vppinfra/elog.h file:
u8 data[20];  --->>  u8 data[52];
Then, I have build the VPP project and test elog. It has a little lower
performance. But would it cause some bugs or runtime problems?

2. Why there is such 20 bytes limitation (or why event must be padded to 32
bytes)?
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] A Simple Configuration Sample for IPFIX test

2017-04-10 Thread Alex Salig
Hi,
I search through VPP website and mailing list, but I didn't find a simple
configuration sample for IPFIX test.
I wasn't able to understand the configuration from command description (for
example in "*set ipfix exporter collector  [port ] src
 [fib-id ] [path-mtu ] [template-interval
] [udp-checksum]*" what is the first IP address and what
is the second one? or what is the fib-id?)

Thanks in advance
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] plugin to filter packets

2021-05-18 Thread Alex Syrnikov

Hello, VPP developers.

I can't understand how to write plugin to filter some packets and 
passing others.

I need to hook on some feature graph, check every packet and remove matched.

I bound required IP for interface, hooked arc "ip4-local" (it can also
be "ip4-unicast") with my node "checker" and do not understand how to
write node function. My node function work if I enable plugin for interface.

If I use node with next nodes as created by extras/emacs/make-plugin.sh
VLIB_REGISTER_NODE (checker_node) =
{
  // ...
  .n_next_nodes = CHECKER_N_NEXT,
  .next_nodes = {
    [CHECKER_NEXT_DROP] = "error-drop",
  },
};

I do not understand how to pass buffer to further nodes on arc in node 
function

- so all packets dropped because next[0] = 0;

Also as I understand feature arc can have many features enabled and all 
packets
will be processed by all nodes on arc, so I do not know which node on 
"ip4-local"

or "ip4-unicast" arc will be after my node to pass buffer there. So I do not
understand what to write in .next_nodes except "error-drop" to pass 
unfiltered

packets to further processing.

If I use .n_next_nodes = 0, all packets will pass to next node on 
feature arc,

but how to drop matched buffers?

The best solution I found is to use vlib_buffer_free() or code like this

  vlib_node_t* drop_node = vlib_get_node_by_name (vm, (u8 *)"error-drop");
  vlib_frame_t* f = vlib_get_frame_to_node (vm, drop_node->index );
  f->n_vectors = 1;
  u32* to_next = vlib_frame_vector_args( f );
  to_next[0] = buffer_index;

  vlib_put_frame_to_node( vm, drop_node->index, f );

and remove matched buffer indexes from vlib_buffer_enqueue_to_next().

(I know vlib_get_node_by_name() can be moved out of loop - this is not 
important.)
But this solution will break batch processing architecture of vpp and I 
think

there is better way (this looks like hack).

As I understand I just need to assign some index to next[0] which is 
nexts for


vlib_buffer_enqueue_to_next (vm, node, from, nexts, frame->n_vectors)

but I do not understand how to get it.

Please help to write node function which will drop matched packets and 
pass to

next node on arc unmatched. What do I need to write in

.next_nodes of VLIB_REGISTER_NODE

and how to drop matched buffers and pass others to next nodes on feature 
arc in node function.


Alex



OpenPGP_0x8C4121F027D4C2A9.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19404): https://lists.fd.io/g/vpp-dev/message/19404
Mute This Topic: https://lists.fd.io/mt/82921204/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] #vpp-dev : How does the ping works from vppctl when we have 2 entries for the same Dest Addr with different sw_if_index

2021-06-27 Thread Alex Syrnikov

Hello.

Probably "show ip fib 107.243.21.113/32" will give a clue.

On 27.06.2021 08:46, Sastry Sista wrote:

Hi,
            Could anybody help me how does VPP works when we have 2 
entries in "show ip neighbor" table for the same dest addr with 
different sw_if_index.


Here below is the example: Dest Addr is 107.243.21.113.

vpp# show ip neighbor

 Time   IP    Flags 
Ethernet  Interface


86554.2133 107.243.21.113    D 
fa:16:3e:9c:9c:94 VirtualFuncEthernet0/7/0.1800


86554.2134 107.243.21.113    D 
fa:16:3e:9c:9c:94 VirtualFuncEthernet0/9/0.1800


2063.9163 107.243.21.241    D 
fa:16:3e:9c:9c:94 VirtualFuncEthernet0/9/0.1800


Also could you please point me where is this code of selection in vpp.

We see some gARP issue and due to which we are into this. We fixed 
gARP but seeing ping issue.


With Regards
Sastry






OpenPGP_signature
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19639): https://lists.fd.io/g/vpp-dev/message/19639
Mute This Topic: https://lists.fd.io/mt/83818702/21656
Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-