[ovs-discuss] To which functions is the first ever incoming packet passed to?
Alan Kayahan
hsykay at gmail.com
Thu Dec 21 22:39:26 UTC 2017
Hello
I am in the process of understanding the OVS code following the information
given by David in this thread https://mail.openvswitch.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/20171221/83f0da26/attachment.html>
More information about the discuss
mailing list