On Sat, Jan 13, 2018 at 11:30:56PM +0100, Thomas Boros wrote:
> Hi Ben,
>
> I’ve managed to implement the action to the kernel space too, now packets are
> mangled successfully. The only issue I have now is that, when the userspace
> is running and a packet arrives the userpace won’t translate my action to the
> datapath. The trace command clearly says, that there is sth wrong with the
> translations.
>
> root@osv:~# ovs-appctl ofproto/trace br0 in_port=enp0s8,tcp,tcp_dst=8000
> Flow:
> tcp,in_port=2,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=8000,tcp_flags=0
>
> bridge("br0")
> -------------
> 0. tcp,tp_dst=8000, priority 32768
> inc_seq(1)
> output:1
>
> Final flow: unchanged
> Megaflow:
> recirc_id=0,eth,tcp,in_port=2,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0/1,nw_dst=0.0.0.0/1,nw_frag=no,tp_dst=8000
> Datapath actions: 3
> root@osv:~#
>
>
> I assume this part is done in the dpif-xlate files, however I could not
> figure out what should happen there. I’ve implemented the compose_inc_seq
> function, but I believe it is wrong. Could you please, give a hint, what
> these compose functions should do? Is that the place where the translation
> occurs or I’m totally wrong?
Normally the translation should emit the corresponding datapath action.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev