[ovs-git] [openvswitch/ovs] b68abe: datapath: export get_dp() API
GitHub
noreply at github.com
Wed Feb 14 08:55:53 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: b68abe0fd9e8c821c25a3ec3cb9a36a5d22b48b9
https://github.com/openvswitch/ovs/commit/b68abe0fd9e8c821c25a3ec3cb9a36a5d22b48b9
Author: Andy Zhou <azhou at ovn.org>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M datapath/datapath.c
M datapath/datapath.h
Log Message:
-----------
datapath: export get_dp() API
Upstream commit:
commit 9602c01e57f7b868d748c2ba2aef0efa64b71ffc
Author: Andy Zhou <azhou at ovn.org>
Date: Fri Nov 10 12:09:41 2017 -0800
openvswitch: export get_dp() API.
Later patches will invoke get_dp() outside of datapath.c. Export it.
Signed-off-by: Andy Zhou <azhou at ovn.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Cc: Andy Zhou <azhou at ovn.org>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: b147f2e9197e0cbb76fbb89513f1907d9ce68155
https://github.com/openvswitch/ovs/commit/b147f2e9197e0cbb76fbb89513f1907d9ce68155
Author: Jiri Benc <jbenc at redhat.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M acinclude.m4
M datapath/datapath.c
M datapath/datapath.h
M datapath/dp_notify.c
M datapath/linux/compat/include/linux/openvswitch.h
Log Message:
-----------
datapath: reliable interface indentification in port dumps
Upstream commit:
commit 9354d452034273a50a4fd703bea31e5d6b1fc20b
Author: Jiri Benc <jbenc at redhat.com>
Date: Thu Nov 2 17:04:37 2017 -0200
openvswitch: reliable interface indentification in port dumps
This patch allows reliable identification of netdevice interfaces connected
to openvswitch bridges. In particular, user space queries the netdev
interfaces belonging to the ports for statistics, up/down state, etc.
Datapath dump needs to provide enough information for the user space to be
able to do that.
Currently, only interface names are returned. This is not sufficient, as
openvswitch allows its ports to be in different name spaces and the
interface name is valid only in its name space. What is needed and generally
used in other netlink APIs, is the pair ifindex+netnsid.
The solution is addition of the ifindex+netnsid pair (or only ifindex if in
the same name space) to vport get/dump operation.
On request side, ideally the ifindex+netnsid pair could be used to
get/set/del the corresponding vport. This is not implemented by this patch
and can be added later if needed.
Signed-off-by: Jiri Benc <jbenc at redhat.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Added compat fixup for peernet2id.
Cc: Jiri Benc <jbenc at redhat.com>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: 8011eea7e1418d2c41e19c7127d727dc631848a4
https://github.com/openvswitch/ovs/commit/8011eea7e1418d2c41e19c7127d727dc631848a4
Author: Andy Zhou <azhou at ovn.org>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M datapath/linux/compat/include/linux/openvswitch.h
Log Message:
-----------
datapath: Add meter netlink definitions
Upstream commit:
commit 5794040647de4011598a6d005fdad95d24fd385b
Author: Andy Zhou <azhou at ovn.org>
Date: Fri Nov 10 12:09:40 2017 -0800
openvswitch: Add meter netlink definitions
Meter has its own netlink family. Define netlink messages and attributes
for communicating with the user space programs.
Signed-off-by: Andy Zhou <azhou at ovn.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Cc: Andy Zhou <azhou at ovn.org>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: 1cb5703965ef7b29cd0ce9cbdb32209fd8d3ee07
https://github.com/openvswitch/ovs/commit/1cb5703965ef7b29cd0ce9cbdb32209fd8d3ee07
Author: Andy Zhou <azhou at ovn.org>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M acinclude.m4
M datapath/Modules.mk
M datapath/datapath.c
M datapath/datapath.h
M datapath/linux/compat/include/net/netlink.h
A datapath/meter.c
A datapath/meter.h
Log Message:
-----------
datapath: Add meter infrastructure
Upstream commit:
commit 96fbc13d7e770b542d2d1fcf700d0baadc6e8063
Author: Andy Zhou <azhou at ovn.org>
Date: Fri Nov 10 12:09:42 2017 -0800
openvswitch: Add meter infrastructure
OVS kernel datapath so far does not support Openflow meter action.
This is the first stab at adding kernel datapath meter support.
This implementation supports only drop band type.
Signed-off-by: Andy Zhou <azhou at ovn.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Added a compat layer fixup for nla_parse.
Added another compat fixup for ktime_get_ns.
Cc: Andy Zhou <azhou at ovn.org>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: 720c5514a219cb11f76b4233e1f28624cc6cfbd8
https://github.com/openvswitch/ovs/commit/720c5514a219cb11f76b4233e1f28624cc6cfbd8
Author: Wei Yongjun <weiyongjun1 at huawei.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M datapath/meter.c
Log Message:
-----------
datapath: Fix return value check in ovs_meter_cmd_features()
Upstream commit:
commit 8a860c2bcc84a8e4fbcabb928cd97e4c51b17d93
Author: Wei Yongjun <weiyongjun1 at huawei.com>
Date: Tue Nov 14 06:20:16 2017 +0000
openvswitch: Fix return value check in ovs_meter_cmd_features()
In case of error, the function ovs_meter_cmd_reply_start() returns
ERR_PTR() not NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure")
Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Cc: Wei Yongjun <weiyongjun1 at huawei.com>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: ab86f680831ca239e451106a82006a9eae10394c
https://github.com/openvswitch/ovs/commit/ab86f680831ca239e451106a82006a9eae10394c
Author: Wei Yongjun <weiyongjun1 at huawei.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M datapath/meter.c
Log Message:
-----------
datapath: Using kfree_rcu() to simplify the code
Upstream commit:
commit 6dc14dc40a1d1dafd8491c349b5f3e15aabc4edb
Author: Wei Yongjun <weiyongjun1 at huawei.com>
Date: Tue Nov 14 06:27:12 2017 +0000
openvswitch: Using kfree_rcu() to simplify the code
The callback function of call_rcu() just calls a kfree(), so we
can use kfree_rcu() instead of call_rcu() + callback function.
Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Cc: Wei Yongjun <weiyongjun1 at huawei.com>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: b88ec467c6059f5cf3f0f27507f0515271067388
https://github.com/openvswitch/ovs/commit/b88ec467c6059f5cf3f0f27507f0515271067388
Author: Gustavo A. R. Silva <garsilva at embeddedor.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M datapath/meter.c
Log Message:
-----------
datapath: meter: fix NULL pointer dereference in ovs_meter_cmd_reply_start
Upstream commit:
commit b74912a2fdae9aadd20da502644aa8848c861954
Author: Gustavo A. R. Silva <garsilva at embeddedor.com>
Date: Tue Nov 14 14:26:16 2017 -0600
openvswitch: meter: fix NULL pointer dereference in ovs_meter_cmd_reply_star
It seems that the intention of the code is to null check the value
returned by function genlmsg_put. But the current code is null
checking the address of the pointer that holds the value returned
by genlmsg_put.
Fix this by properly null checking the value returned by function
genlmsg_put in order to avoid a pontential null pointer dereference.
Addresses-Coverity-ID: 1461561 ("Dereference before null check")
Addresses-Coverity-ID: 1461562 ("Dereference null return value")
Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure")
Signed-off-by: Gustavo A. R. Silva <garsilva at embeddedor.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Cc: Gustavo A. R. Silva <garsilva at embeddedor.com>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: 65e64d207cd98c6989dcaeed9c29a8b212c2aeba
https://github.com/openvswitch/ovs/commit/65e64d207cd98c6989dcaeed9c29a8b212c2aeba
Author: Gustavo A. R. Silva <gustavo at embeddedor.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M datapath/meter.c
Log Message:
-----------
datapath: meter: Use 64-bit arithmetic instead of 32-bit
Upstream commit:
commit 5b7789e8fa8f353ad8f2c44de2385cb161b22d32
Author: Gustavo A. R. Silva <gustavo at embeddedor.com>
Date: Tue Jan 30 22:55:33 2018 -0600
Add suffix LL to constant 1000 in order to give the compiler
complete information about the proper arithmetic to use. Notice
that this constant is used in a context that expects an expression
of type long long int (64 bits, signed).
The expression (band->burst_size + band->rate) * 1000 is currently
being evaluated using 32-bit arithmetic.
Addresses-Coverity-ID: 1461563 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavo at embeddedor.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: cc4f25be695e4d306e6274f584754d65a58b82ae
https://github.com/openvswitch/ovs/commit/cc4f25be695e4d306e6274f584754d65a58b82ae
Author: Pravin Shelar <pravin.b.shelar at oracle.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M Documentation/faq/releases.rst
M NEWS
Log Message:
-----------
Documentation: Update NEWS and faq
Per the Linux 4.14 kernel support.
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: 05522eaa8a138a71c780a4b4c2b7c59ff757dc0e
https://github.com/openvswitch/ovs/commit/05522eaa8a138a71c780a4b4c2b7c59ff757dc0e
Author: Greg Rose <gvrose8192 at gmail.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M acinclude.m4
Log Message:
-----------
acinclude.m4: Enable Linux 4.14
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Commit: be7b165518f777c68833fcb0c844419c8c34af3e
https://github.com/openvswitch/ovs/commit/be7b165518f777c68833fcb0c844419c8c34af3e
Author: Greg Rose <gvrose8192 at gmail.com>
Date: 2018-02-12 (Mon, 12 Feb 2018)
Changed paths:
M .travis.yml
Log Message:
-----------
travis: Update kernel test list from kernel.org
Also add package libelf-dev - since 4.14 it's required for making
the source.
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Compare: https://github.com/openvswitch/ovs/compare/0ef2d6ce7f48...be7b165518f7
More information about the git
mailing list