[ovs-dev] [PATCH] configuration.rst: Update the example of DPDK port's configuration

2017-01-17 Thread Binbin Xu
After the hotplug of DPDK ports, a valid dpdk-devargs must be specified. Otherwise, the DPDK device can't be available. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- Documentation/faq/configuration.rst | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[ovs-dev] [PATCH v2] netdev-dpdk: Assign socket id according to device's numa id

2017-01-11 Thread Binbin Xu
'dpdk' port naming") Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 8bb9086..57ebdb3 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@

[ovs-dev] [PATCH 3/3] netdev-dpdk: Restore flags of dpdk netdev

2016-11-10 Thread Binbin Xu
If the eth device starts failed or vhost port is not running, the flags of dpdk netdev should be restored. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c

[ovs-dev] [PATCH] netdev-dpdk: Assign value '0' to unsupported netdev features

2016-10-12 Thread Binbin Xu
When OVS is used, DPDK doesn't support features 'advertised', 'supported' and 'peer'. If a physical port added to bridge, features descirbed above can't be assigned, and the values are random. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 8 +--- 1 file chan

[ovs-dev] [PATCH] netdev: Initialize netdev's features before getting them

2016-10-12 Thread Binbin Xu
When OVS is used, DPDK doesn't support features 'advertised', 'supported' and 'peer'. If a physical port added to bridge, features descirbed above can't be assigned, and the values are random. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev.c | 6 +++--- 1 file chan

[ovs-dev] [PATCH] netdev-dpdk: Optimise the initialization of "port_conf"

2016-10-11 Thread Binbin Xu
The member "max_rx_pkt_len" of "port_conf" is only used if jumbo_frame enabled, so it can be initialized with value '0'. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/

[ovs-dev] [CudaMailTagged] [PATCH v3] netdev-dpdk: In some case, needn't reconfigure pmd threads when changing MTU

2016-10-11 Thread Binbin Xu
If the port is not an ethernet port, and the aligned size for the new MTU doesn't change, we needn't to reconfigure pmd thread. What we should do is that updating 'max_packet_len' atomic. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.

[ovs-dev] [CudaMailTagged] [PATCH v2] netdev-dpdk: In some case, needn't reconfigure pmd threads when changing MTU

2016-10-10 Thread Binbin Xu
If the port is not an ethernet port, and the aligned size for the new MTU doesn't change, we needn't to reconfigure pmd thread. What we should do is that updating 'max_packet_len' atomic. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.

[ovs-dev] [PATCH 1/2] ofproto: fix the crash of process ovs-vswitchd

2016-09-20 Thread Binbin Xu
e_run__ () 7 0x7f65807e715d in bridge_run () 8 0x7f658065784d in main () Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- ofproto/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ofproto/ofproto.c diff --git a/ofproto/ofproto.c b/ofpro

[ovs-dev] [PATCH 2/2] ofp-actions: remove unused macro and function

2016-09-20 Thread Binbin Xu
The macro "OFPACT_FOR_EACH_TYPE" should be instead of macro "OFPACT_FOR_EACH_TYPE_FLATTENED". The macro and function with reference to "OFPACT_FOR_EACH_TYPE" can be removed now. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- include/openvswitch/ofp-actio

[ovs-dev] [CudaMailTagged] [PATCH] bond: Fix the issue of negative number of "next rebalance"

2016-09-12 Thread Binbin Xu
The command "ovs-appctl bond/show" is used for display information of bond ports. When bond mode is "balance_slb" or "balance_tcp", we can find that the value followed behind "next rebalance" is negative somtimes. Signed-off-by: Binbin Xu <xu.binb...@z

[ovs-dev] [CudaMailTagged] [PATCH] netdev-dpdk: in some case, needn't reconfigure pmd threads when changing MTU

2016-09-05 Thread Binbin Xu
-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 6d334db..86dd5df 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1723,6 +

[ovs-dev] [PATCH] vlog: fix the crash caused by option syslog-method

2016-08-19 Thread Binbin Xu
in (argc=2, argv=0x7fff097e83b8) at utilities/ovs-appctl.c:53 Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- include/openvswitch/vlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openvswitch/vlog.h b/include/openvswitch/vlog.h index de64cbd

[ovs-dev] [PATCH] vlog: fix the crash caused by option syslog-method

2016-08-16 Thread Binbin Xu
in (argc=2, argv=0x7fff097e83b8) at utilities/ovs-appctl.c:53 Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- include/openvswitch/vlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openvswitch/vlog.h b/include/openvswitch/vlog.h index de64cbd

[ovs-dev] [PATCH 1/2] netdev-vport: remove unused function

2016-08-10 Thread Binbin Xu
The function netdev_vport_get_dpif_port_strdup is not used anymore. So we can remove it now. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-vport.c | 9 - lib/netdev-vport.h | 1 - 2 files changed, 10 deletions(-) mode change 100644 => 100755 lib/netdev-vpor

[ovs-dev] [CudaMailTagged] [PATCH 2/2] Tunnel: Fix the issue of tunnel port creation

2016-08-10 Thread Binbin Xu
vxlan_sys_4789vxlan_usr_4789 gre gre_sys gre_usr .. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/dpif-netdev.c | 3 ++- lib/dpif-netlink.c | 2 +- lib/netdev-vport.c | 26 +++--- lib/netdev-vport.h | 2 +- lib/ne

[ovs-dev] [CudaMailTagged] [PATCH 2/2] Tunnel: Fix the issue of tunnel port creation

2016-08-05 Thread Binbin Xu
vxlan_sys_4789vxlan_usr_4789 gre gre_sys gre_usr .. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/dpif-netdev.c | 3 ++- lib/dpif-netlink.c | 2 +- lib/netdev-vport.c | 26 +++--- lib/netdev-vport.h | 2 +- lib/ne

[ovs-dev] [PATCH 1/2] netdev-vport: remove unused function

2016-08-05 Thread Binbin Xu
The function netdev_vport_get_dpif_port_strdup is not used anymore. So we can remove it now. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-vport.c | 9 - lib/netdev-vport.h | 1 - 2 files changed, 10 deletions(-) mode change 100644 => 100755 lib/netdev-vpor

[ovs-dev] [CudaMailTagged] [PATCH] netdev-dpdk: unlink socket file when constructing vhostuser.

2016-08-04 Thread Binbin Xu
of socket binding. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 lib/netdev-dpdk.c diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c old mode 100644 new mode 100755 index aaac0d1

[ovs-dev] [CudaMailTagged] [PATCH] netdev-dpdk: unlink socket file when constructing vhostuser.

2016-08-04 Thread Binbin Xu
of socket binding. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 lib/netdev-dpdk.c diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c old mode 100644 new mode 100755 index aaac0d1

[ovs-dev] [CudaMailTagged] [PATCH] netdev-dpdk: unlink socket file when constructing vhostuser.

2016-08-04 Thread Binbin Xu
of socket binding. Signed-off-by: Binbin Xu <xu.binb...@zte.com.cn> --- lib/netdev-dpdk.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 lib/netdev-dpdk.c diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c old mode 100644 new mode 100755 index aaac0d1