[ovs-discuss] Question about PORT_MOD work on the kernel part

Ben Pfaff blp at nicira.com
Mon Oct 13 18:39:46 UTC 2014


On Mon, Oct 13, 2014 at 09:44:50PM +0800, Bo Hu wrote:
> I am confused by the realization of port mod. I find that these is a
> function named *handle_flow_mod* in ofproto/ofproto.c to deal with the
> PORT_MOD message. In this funciton, it will call a function named
> *update_port_config.

I think that you mean handle_port_mod, not handle_flow_mod.

> *My question is after it finished the port mod in userspace, how can kernel
> part know? Indeed, I find a function named *port_reconfigured, *but what is
> the detailed realization of port configuration in kernel part.
> 
> For example, if I want that no flood packets can pass a specific port, what
> is the detailed realization in kernel(or datapath) part? I find it really
> difficult to catch the point.

Port-specific processing happens as part of flow translation, in
ofproto-dpif-xlate.c.  After port settings change, all existing flows
have to be re-translated to adopt the new settings.



More information about the discuss mailing list