Re: [ovs-discuss] [ovs-dev] Regarding permission for usage of OpenVSwitch reference.

2015-01-21 Thread Shashwat Srivastava
Hi Justin, We are proposing a solution to the problem in our whitepaper when flows of same importance are encountered in the case when flow eviction is enabled on basis of Importance field. Regards Shashwat Srivastava From: Justin Pettit To: Shashwat Srivastava Cc: discuss Date

Re: [ovs-discuss] Fwd: Is there any possible for program blocking here for long time ?

2015-01-21 Thread yewgang
Thank you for your answers very much. # Actually I have add events I care about between poll_timer_wait and poll_block. What I want is: if the event I care about happens, then wake up immediately; if the event I care about does not happens, then wake up after 1000ms; I test my codes,

Re: [ovs-discuss] [ovs-dev] Regarding permission for usage of OpenVSwitch reference.

2015-01-21 Thread Justin Pettit
You're free to refer to OVS, but I don't think you need our permission for that. Is there something other than referring to it that you're doing? --Justin > On Jan 21, 2015, at 11:09 PM, Shashwat Srivastava > wrote: > > Hi Team, > > I am writing a whitepaper and wanted your permission to u

[ovs-discuss] Regarding permission for usage of OpenVSwitch reference.

2015-01-21 Thread Shashwat Srivastava
Hi Team, I am writing a whitepaper and wanted your permission to use the reference of Open VSwitch in our whitepaper. Is this the right place to seek permission or please direct me where to send the mail for the same ? Regards Shashwat Srivastava =-=-= Notice: The informati

Re: [ovs-discuss] Fwd: Is there any possible for program blocking here for long time ?

2015-01-21 Thread Ben Pfaff
On Thu, Jan 22, 2015 at 01:37:50PM +0800, yewgang wrote: > These codes is only an example, I decide to write codes in my project by > hand like below: > > for (i = 0; i < LOOP_COUNT_DEFINE_BY_MYSELF; i++) { > status = ovsdb_idl_txn_commit(txn) > if (status != TXN_INCOMPLETE) > bre

Re: [ovs-discuss] Fwd: Is there any possible for program blocking here for long time ?

2015-01-21 Thread yewgang
These codes is only an example, I decide to write codes in my project by hand like below: for (i = 0; i < LOOP_COUNT_DEFINE_BY_MYSELF; i++) { status = ovsdb_idl_txn_commit(txn) if (status != TXN_INCOMPLETE) break; poll_timer_wait(1000); poll_block(); } I hope th

Re: [ovs-discuss] Fwd: Is there any possible for program blocking here for long time ?

2015-01-21 Thread Ben Pfaff
It's not what I recommended. If you're not going to take my advice anyway then I don't see much point in giving more of it. On Thu, Jan 22, 2015 at 11:01:54AM +0800, yewgang wrote: > Thank you. I don't know if these codes will give me faster response ? Could > I change codes like this ? > > enum

[ovs-discuss] Fwd: Is there any possible for program blocking here for long time ?

2015-01-21 Thread yewgang
Dear Developers, Thank you. I don't know if these codes will give me faster response ? Could I change codes like this ? enum ovsdb_idl_txn_status ovsdb_idl_txn_commit_block(struct ovsdb_idl_txn *txn) { enum ovsdb_idl_txn_status status; fatal_signal_run(); while ((status = ovsdb_idl_t

Re: [ovs-discuss] Rejecting flow-mod from a slave controller

2015-01-21 Thread Anup Khadka
Ok, excellent. Thanks for the clarification. On Wed, Jan 21, 2015 at 4:24 PM, Ben Pfaff wrote: > The updated definition of OFPERR_OFPBRC_IS_SLAVE will use the type and > code for OFPBRC_EPERM in OpenFlow 1.0 and 1.1, and the type and code > for OFPBRC_IS_SLAVE in OpenFlow 1.2+ without any specia

Re: [ovs-discuss] Rejecting flow-mod from a slave controller

2015-01-21 Thread Ben Pfaff
The updated definition of OFPERR_OFPBRC_IS_SLAVE will use the type and code for OFPBRC_EPERM in OpenFlow 1.0 and 1.1, and the type and code for OFPBRC_IS_SLAVE in OpenFlow 1.2+ without any special logic elsewhere in the code. In other words, it does the same thing as what you suggested elsewhere,

[ovs-discuss] MTU vs Jumbo frames on DPDK OVS

2015-01-21 Thread David Evans
Hi All, The INSTALL.DPDK Mentions - Work with 1500 MTU, needs few changes in DPDK lib to fix this issue. I want to push 15K jumbo frames. What exactly needs to change in DPDK for this? Other than the jumbo frames flag in the rxmode of the port conf? Regards, Dave. ___

Re: [ovs-discuss] Rejecting flow-mod from a slave controller

2015-01-21 Thread Anup Khadka
This is what I had in mind: static enum ofperr reject_slave_controller(struct ofconn *ofconn) { if (ofconn_get_type(ofconn) == OFCONN_PRIMARY && ofconn_get_role(ofconn) == OFPCR12_ROLE_SLAVE) { if (ofputil_protocol_to_ofp_version(ofconn_get_protocol(ofconn)) >= OFP12_VERSION) {

Re: [ovs-discuss] Rejecting flow-mod from a slave controller

2015-01-21 Thread Anup Khadka
I am actually confused by the fix. OFPBRC_IS_SLAVE is an OpenFlow 1.2+ error message, correct? The comment in the header file is changed and it appears that this is an OpenFlow 1.0+ error message and I am not sure if that's right. Likewise OFPBRC_IS_SLAVE is returned while rejecting slave controlle

Re: [ovs-discuss] Rejecting flow-mod from a slave controller

2015-01-21 Thread Ben Pfaff
I sent out a fix: http://openvswitch.org/pipermail/dev/2015-January/050612.html On Tue, Jan 20, 2015 at 03:01:27PM -0800, Ben Pfaff wrote: > The OF1.2 feature was based on an Open vSwitch extension to OpenFlow > first implemented for OF1.0. We need to continue supporting that > extension.

Re: [ovs-discuss] Configure sampling rate

2015-01-21 Thread Ben Pfaff
On Wed, Jan 21, 2015 at 11:50:10PM +0800, K 華 wrote: > I tried to change sampling rate in sflow table by sending JSON to OVSDB. > I found that sampling rate would be configured after sending JSON to OVSDB, > but it did not work immediately and did work after no packet passing. > > How to make sam

[ovs-discuss] Controller reaction to ARP requests

2015-01-21 Thread Azouni Abdelhadi
Hello all, >From an OpenFlow view, how should a controller reply to a message-in containing an ARP request (that the of-switch didn't know how to handle) ? in both cases: 1. the controller has the info about the requested IP 2. the controller has not the info Thank you Abdelhadi

[ovs-discuss] Packet drops during non-exhaustive flood with OVS and 1.8.0

2015-01-21 Thread Andrey Korolyov
Hello, I observed that the latest OVS with dpdk-1.8.0 and igb_uio starts to drop packets earlier than a regular Linux ixgbe 10G interface, setup follows: receiver/forwarder: - 8 core/2 head system with E5-2603v2, cores 1-3 are given to OVS exclusively - n-dpdk-rxqs=6, rx scattering is not enabled

[ovs-discuss] Configure sampling rate

2015-01-21 Thread K 華
hi, I tried to change sampling rate in sflow table by sending JSON to OVSDB. I found that sampling rate would be configured after sending JSON to OVSDB, but it did not work immediately and did work after no packet passing. How to make sampling rate work after sending JSON to OVSDB with no delay?O