projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge: Optimize trunk port common case.
[openvswitch]
/
datapath
/
datapath.c
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index 83dd76fefcbd4d6d072c98d72b12b7cc5285cd2d..71a44e6fcb4cd0201a5e753c33bf9b0d4153c09b 100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-428,8
+428,7
@@
got_port_no:
if (err)
goto out_unlock_dp;
if (err)
goto out_unlock_dp;
- if (!(port.flags & ODP_PORT_INTERNAL))
- set_internal_devs_mtu(dp);
+ set_internal_devs_mtu(dp);
dp_sysfs_add_if(dp->ports[port_no]);
err = __put_user(port_no, &portp->port);
dp_sysfs_add_if(dp->ports[port_no]);
err = __put_user(port_no, &portp->port);
@@
-1358,7
+1357,7
@@
int dp_min_mtu(const struct datapath *dp)
}
/* Sets the MTU of all datapath devices to the minimum of the ports. Must
}
/* Sets the MTU of all datapath devices to the minimum of the ports. Must
- * be called with RTNL lock
and dp_mutex
. */
+ * be called with RTNL lock. */
void set_internal_devs_mtu(const struct datapath *dp)
{
struct dp_port *p;
void set_internal_devs_mtu(const struct datapath *dp)
{
struct dp_port *p;