[ovs-discuss] To which functions is the first ever incoming packet passed to?

Alan Kayahan hsykay at gmail.com
Tue Dec 26 14:19:24 UTC 2017


Turned out I wasn't properly installing the kernel modules I modified.

2017-12-21 23:39 GMT+01:00 Alan Kayahan <hsykay at gmail.com>:

> Hello
>
> I am in the process of understanding the OVS code following the
> information given by David in this thread https://mail.openvswitc
> h.org/pipermail/ovs-discuss/2016-March/040236.html
>
> So I have the following simple setup where namespaces C1 and C2 are
> connected to SW1.
>
> ip netns add C1
> ip netns add C2
>
> ip link add C1-eth0 type veth peer name SW1-C1
> ip link add C2-eth0 type veth peer name SW1-C2
> ip link set SW1-C1 up
> ip link set SW1-C2 up
>
> ip link set C1-eth0 netns C1
> ip link set C2-eth0 netns C2
> ip netns exec C1 ifconfig C1-eth0 10.50.10.1/24 up
> ip netns exec C2 ifconfig C2-eth0 10.50.10.2/24 up
>
> ovs-ctl start
> ovs-vsctl add-br SW1
> ovs-vsctl add-port SW1 SW1-C1
> ovs-vsctl add-port SW1 SW1-C2
>
> There are no controllers, no flow rules added, and they ping each
> other just fine. I inserted a log function call in the
> ovs_dp_process_packet() in datapath.c so every time it is called I should
> get a message printed to a file. However nothing is printed even though the
> pings work. My expectation is that the first echo request should enter the
> if(unlikely(!flow)) clause in ovs_dp_process_packet() and trigger an
> upcall. What am I doing wrong?
>
> Thanks,
> Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171226/d04a2ab2/attachment.html>


More information about the discuss mailing list