patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH 6/7] ethdev: remove invalid symbols from map file
       [not found] <20200824094021.2323605-1-ferruh.yigit@intel.com>
@ 2020-08-24  9:40 ` Ferruh Yigit
  2020-08-29 12:14   ` Andrew Rybchenko
       [not found] ` <20200903211000.244931-1-ferruh.yigit@intel.com>
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 21+ messages in thread
From: Ferruh Yigit @ 2020-08-24  9:40 UTC (permalink / raw)
  To: dev, Ray Kinsella, Neil Horman, Thomas Monjalon,
	Andrew Rybchenko, Sergio Gonzalez Monroy
  Cc: Ferruh Yigit, stable

These are sturct type names, not object names. Removing them from .map
file.

Fixes: 9d41beed24b0 ("lib: provide initial versioning")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 lib/librte_ethdev/rte_ethdev_version.map | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/librte_ethdev/rte_ethdev_version.map b/lib/librte_ethdev/rte_ethdev_version.map
index 5db3fb156a..a85986a2a2 100644
--- a/lib/librte_ethdev/rte_ethdev_version.map
+++ b/lib/librte_ethdev/rte_ethdev_version.map
@@ -81,7 +81,6 @@ DPDK_21 {
 	rte_eth_iterator_next;
 	rte_eth_led_off;
 	rte_eth_led_on;
-	rte_eth_link;
 	rte_eth_link_get;
 	rte_eth_link_get_nowait;
 	rte_eth_macaddr_get;
@@ -96,7 +95,6 @@ DPDK_21 {
 	rte_eth_rx_queue_setup;
 	rte_eth_set_queue_rate_limit;
 	rte_eth_speed_bitflag;
-	rte_eth_stats;
 	rte_eth_stats_get;
 	rte_eth_stats_reset;
 	rte_eth_timesync_adjust_time;
-- 
2.25.4


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [PATCH 6/7] ethdev: remove invalid symbols from map file
  2020-08-24  9:40 ` [dpdk-stable] [PATCH 6/7] ethdev: remove invalid symbols from map file Ferruh Yigit
@ 2020-08-29 12:14   ` Andrew Rybchenko
  0 siblings, 0 replies; 21+ messages in thread
From: Andrew Rybchenko @ 2020-08-29 12:14 UTC (permalink / raw)
  To: Ferruh Yigit, dev, Ray Kinsella, Neil Horman, Thomas Monjalon,
	Sergio Gonzalez Monroy
  Cc: stable

On 8/24/20 12:40 PM, Ferruh Yigit wrote:
> These are sturct type names, not object names. Removing them from .map
> file.
> 
> Fixes: 9d41beed24b0 ("lib: provide initial versioning")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>

Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [PATCH v2 6/7] ethdev: remove invalid symbols from map file
       [not found] ` <20200903211000.244931-1-ferruh.yigit@intel.com>
@ 2020-09-03 21:09   ` Ferruh Yigit
  0 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-09-03 21:09 UTC (permalink / raw)
  To: dev, Ray Kinsella, Neil Horman, Thomas Monjalon,
	Andrew Rybchenko, Sergio Gonzalez Monroy
  Cc: Ferruh Yigit, stable

These are sturct type names, not object names. Removing them from .map
file.

Fixes: 9d41beed24b0 ("lib: provide initial versioning")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
 lib/librte_ethdev/rte_ethdev_version.map | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/librte_ethdev/rte_ethdev_version.map b/lib/librte_ethdev/rte_ethdev_version.map
index 5db3fb156a..a85986a2a2 100644
--- a/lib/librte_ethdev/rte_ethdev_version.map
+++ b/lib/librte_ethdev/rte_ethdev_version.map
@@ -81,7 +81,6 @@ DPDK_21 {
 	rte_eth_iterator_next;
 	rte_eth_led_off;
 	rte_eth_led_on;
-	rte_eth_link;
 	rte_eth_link_get;
 	rte_eth_link_get_nowait;
 	rte_eth_macaddr_get;
@@ -96,7 +95,6 @@ DPDK_21 {
 	rte_eth_rx_queue_setup;
 	rte_eth_set_queue_rate_limit;
 	rte_eth_speed_bitflag;
-	rte_eth_stats;
 	rte_eth_stats_get;
 	rte_eth_stats_reset;
 	rte_eth_timesync_adjust_time;
-- 
2.25.4


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [PATCH v3 6/7] ethdev: remove invalid symbols from map file
       [not found] ` <20200909111220.1195759-1-ferruh.yigit@intel.com>
@ 2020-09-09 11:12   ` Ferruh Yigit
  0 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-09-09 11:12 UTC (permalink / raw)
  To: dev, Ray Kinsella, Neil Horman, Thomas Monjalon,
	Andrew Rybchenko, Sergio Gonzalez Monroy
  Cc: Ferruh Yigit, stable

These are struct type names, not object names. Removing them from .map
file.

Fixes: 9d41beed24b0 ("lib: provide initial versioning")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
 lib/librte_ethdev/rte_ethdev_version.map | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/librte_ethdev/rte_ethdev_version.map b/lib/librte_ethdev/rte_ethdev_version.map
index 5db3fb156a..a85986a2a2 100644
--- a/lib/librte_ethdev/rte_ethdev_version.map
+++ b/lib/librte_ethdev/rte_ethdev_version.map
@@ -81,7 +81,6 @@ DPDK_21 {
 	rte_eth_iterator_next;
 	rte_eth_led_off;
 	rte_eth_led_on;
-	rte_eth_link;
 	rte_eth_link_get;
 	rte_eth_link_get_nowait;
 	rte_eth_macaddr_get;
@@ -96,7 +95,6 @@ DPDK_21 {
 	rte_eth_rx_queue_setup;
 	rte_eth_set_queue_rate_limit;
 	rte_eth_speed_bitflag;
-	rte_eth_stats;
 	rte_eth_stats_get;
 	rte_eth_stats_reset;
 	rte_eth_timesync_adjust_time;
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [PATCH v4 6/7] ethdev: remove invalid symbols from map file
       [not found] ` <20200909130148.1756518-1-ferruh.yigit@intel.com>
@ 2020-09-09 13:01   ` Ferruh Yigit
  0 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-09-09 13:01 UTC (permalink / raw)
  To: dev, Ray Kinsella, Neil Horman, Thomas Monjalon,
	Andrew Rybchenko, Sergio Gonzalez Monroy
  Cc: Ferruh Yigit, stable, David Marchand

These are struct type names, not object names. Removing them from .map
file.

Fixes: 9d41beed24b0 ("lib: provide initial versioning")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: David Marchand <david.marchand@redhat.com>
---
 lib/librte_ethdev/rte_ethdev_version.map | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/librte_ethdev/rte_ethdev_version.map b/lib/librte_ethdev/rte_ethdev_version.map
index 5db3fb156a..a85986a2a2 100644
--- a/lib/librte_ethdev/rte_ethdev_version.map
+++ b/lib/librte_ethdev/rte_ethdev_version.map
@@ -81,7 +81,6 @@ DPDK_21 {
 	rte_eth_iterator_next;
 	rte_eth_led_off;
 	rte_eth_led_on;
-	rte_eth_link;
 	rte_eth_link_get;
 	rte_eth_link_get_nowait;
 	rte_eth_macaddr_get;
@@ -96,7 +95,6 @@ DPDK_21 {
 	rte_eth_rx_queue_setup;
 	rte_eth_set_queue_rate_limit;
 	rte_eth_speed_bitflag;
-	rte_eth_stats;
 	rte_eth_stats_get;
 	rte_eth_stats_reset;
 	rte_eth_timesync_adjust_time;
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 01/10] app/procinfo: fix redundant condition
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
@ 2020-11-19 11:58   ` Ferruh Yigit
  2021-01-08 10:36     ` [dpdk-stable] [dpdk-dev] " David Marchand
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 02/10] app/procinfo: fix negative check on unsigned variable Ferruh Yigit
                     ` (8 subsequent siblings)
  9 siblings, 1 reply; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Maryam Tahhan, Reshma Pattan, Harry van Haaren, Roman Korynkevych
  Cc: Ferruh Yigit, stable

'_filters' is compared twice, second one will be always false, removing
it using the message more relevant to the '_filters'.

Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 app/proc-info/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index d743209f0d..35e5b596eb 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -420,11 +420,9 @@ static void collectd_resolve_cnt_type(char *cnt_type, size_t cnt_type_len,
 	} else if ((type_end != NULL) &&
 		   (strncmp(cnt_name, "flow_", strlen("flow_"))) == 0) {
 		if (strncmp(type_end, "_filters", strlen("_filters")) == 0)
-			strlcpy(cnt_type, "operations", cnt_type_len);
+			strlcpy(cnt_type, "filter_result", cnt_type_len);
 		else if (strncmp(type_end, "_errors", strlen("_errors")) == 0)
 			strlcpy(cnt_type, "errors", cnt_type_len);
-		else if (strncmp(type_end, "_filters", strlen("_filters")) == 0)
-			strlcpy(cnt_type, "filter_result", cnt_type_len);
 	} else if ((type_end != NULL) &&
 		   (strncmp(cnt_name, "mac_", strlen("mac_"))) == 0) {
 		if (strncmp(type_end, "_errors", strlen("_errors")) == 0)
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 02/10] app/procinfo: fix negative check on unsigned variable
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 01/10] app/procinfo: fix redundant condition Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 03/10] app/procinfo: remove suspicious sizeof Ferruh Yigit
                     ` (7 subsequent siblings)
  9 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Maryam Tahhan, Reshma Pattan, Kuba Kozak
  Cc: Ferruh Yigit, stable, David Marchand

'parse_xstats_ids()' return 'int'. The return value is assigned to
'nb_xstats_ids' unsigned value, later negative check on this variable is
wrong.

Adding interim 'int' variable for negative check.

Fixes: 7ac16a3660c0 ("app/proc-info: support xstats by ID and by name")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
---
v3:
* Removed casting
---
 app/proc-info/main.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 35e5b596eb..8ee30ddb71 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -301,14 +301,13 @@ proc_info_parse_args(int argc, char **argv)
 			} else if (!strncmp(long_option[option_index].name,
 					"xstats-ids",
 					MAX_LONG_OPT_SZ))	{
-				nb_xstats_ids = parse_xstats_ids(optarg,
+				int ret = parse_xstats_ids(optarg,
 						xstats_ids, MAX_NB_XSTATS_IDS);
-
-				if (nb_xstats_ids <= 0) {
+				if (ret <= 0) {
 					printf("xstats-id list parse error.\n");
 					return -1;
 				}
-
+				nb_xstats_ids = ret;
 			}
 			break;
 		default:
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 03/10] app/procinfo: remove suspicious sizeof
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 01/10] app/procinfo: fix redundant condition Ferruh Yigit
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 02/10] app/procinfo: fix negative check on unsigned variable Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 04/10] app/procinfo: remove useless assignment Ferruh Yigit
                     ` (6 subsequent siblings)
  9 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Maryam Tahhan, Reshma Pattan, John McNamara, Vipin Varghese
  Cc: Ferruh Yigit, stable, David Marchand

The intention with the "sizeof(0)" usage is not clear, but the 'stats'
already 'memset' by 'rte_cryptodev_stats_get()' API, removing 'memset'
in application.

Fixes: fe773600fe3e ("app/procinfo: add --show-crypto")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
---
 app/proc-info/main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 8ee30ddb71..106b44d6fb 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1207,7 +1207,6 @@ show_crypto(void)
 
 		display_crypto_feature_info(dev_info.feature_flags);
 
-		memset(&stats, 0, sizeof(0));
 		if (rte_cryptodev_stats_get(i, &stats) == 0) {
 			printf("\t  -- stats\n");
 			printf("\t\t  + enqueue count (%"PRIu64")"
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 04/10] app/procinfo: remove useless assignment
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (2 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 03/10] app/procinfo: remove suspicious sizeof Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 05/10] net/pcap: remove local variable shadowing outer one Ferruh Yigit
                     ` (5 subsequent siblings)
  9 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Maryam Tahhan, Reshma Pattan, Vipin Varghese, John McNamara
  Cc: Ferruh Yigit, stable, David Marchand

'flag' is initialized to '0' but it is overwritten later, moving the
declaration where it is used and initialize with actual value.

Fixes: 0101a0ec6217 ("app/procinfo: add --show-mempool")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
---
 app/proc-info/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 106b44d6fb..44249dd2cb 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1264,8 +1264,6 @@ show_ring(char *name)
 static void
 show_mempool(char *name)
 {
-	uint64_t flags = 0;
-
 	snprintf(bdr_str, MAX_STRING_LEN, " show - MEMPOOL ");
 	STATS_BDR_STR(10, bdr_str);
 
@@ -1273,8 +1271,8 @@ show_mempool(char *name)
 		struct rte_mempool *ptr = rte_mempool_lookup(name);
 		if (ptr != NULL) {
 			struct rte_mempool_ops *ops;
+			uint64_t flags = ptr->flags;
 
-			flags = ptr->flags;
 			ops = rte_mempool_get_ops(ptr->ops_index);
 			printf("  - Name: %s on socket %d\n"
 				"  - flags:\n"
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 05/10] net/pcap: remove local variable shadowing outer one
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (3 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 04/10] app/procinfo: remove useless assignment Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2021-01-08 10:31     ` David Marchand
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 06/10] net/bonding: " Ferruh Yigit
                     ` (4 subsequent siblings)
  9 siblings, 1 reply; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Juhamatti Kuusisaari; +Cc: Ferruh Yigit, stable

'ret' is already defined in the function scope, removing the 'ret' in
the block scope.

Fixes: c9507cd0cada ("net/pcap: support physical interface MAC address")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
v3:
* Eliminated block scope 'ret' variable usage completely.
---
 drivers/net/pcap/rte_eth_pcap.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c
index 4930d7d382..90929478eb 100644
--- a/drivers/net/pcap/rte_eth_pcap.c
+++ b/drivers/net/pcap/rte_eth_pcap.c
@@ -1324,9 +1324,8 @@ eth_from_pcaps(struct rte_vdev_device *vdev,
 
 		/* phy_mac arg is applied only only if "iface" devarg is provided */
 		if (rx_queues->phy_mac) {
-			int ret = eth_pcap_update_mac(rx_queues->queue[0].name,
-					eth_dev, vdev->device.numa_node);
-			if (ret == 0)
+			if(eth_pcap_update_mac(rx_queues->queue[0].name,
+					eth_dev, vdev->device.numa_node) == 0)
 				internals->phy_mac = 1;
 		}
 	}
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 06/10] net/bonding: remove local variable shadowing outer one
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (4 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 05/10] net/pcap: remove local variable shadowing outer one Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2021-01-08 10:34     ` [dpdk-stable] [dpdk-dev] " David Marchand
  2021-01-11  1:03     ` [dpdk-stable] " Min Hu (Connor)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 07/10] net/af_xdp: remove useless assignment Ferruh Yigit
                     ` (3 subsequent siblings)
  9 siblings, 2 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Chas Williams, Min Hu (Connor), Tomasz Kulasek, Declan Doherty
  Cc: Ferruh Yigit, stable

'retval' is already defined in the function scope, removing the 'retval'
in the block scope.

Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
Cc: tomaszx.kulasek@intel.com
---
 drivers/net/bonding/rte_eth_bond_8023ad.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c
index 67ca0730fa..5fe004e551 100644
--- a/drivers/net/bonding/rte_eth_bond_8023ad.c
+++ b/drivers/net/bonding/rte_eth_bond_8023ad.c
@@ -1334,8 +1334,7 @@ bond_mode_8023ad_handle_slow_pkt(struct bond_dev_private *internals,
 		rte_eth_macaddr_get(slave_id, &m_hdr->eth_hdr.s_addr);
 
 		if (internals->mode4.dedicated_queues.enabled == 0) {
-			int retval = rte_ring_enqueue(port->tx_ring, pkt);
-			if (retval != 0) {
+			if (rte_ring_enqueue(port->tx_ring, pkt) != 0) {
 				/* reset timer */
 				port->rx_marker_timer = 0;
 				wrn = WRN_TX_QUEUE_FULL;
@@ -1355,8 +1354,7 @@ bond_mode_8023ad_handle_slow_pkt(struct bond_dev_private *internals,
 		}
 	} else if (likely(subtype == SLOW_SUBTYPE_LACP)) {
 		if (internals->mode4.dedicated_queues.enabled == 0) {
-			int retval = rte_ring_enqueue(port->rx_ring, pkt);
-			if (retval != 0) {
+			if (rte_ring_enqueue(port->rx_ring, pkt) != 0) {
 				/* If RX fing full free lacpdu message and drop packet */
 				wrn = WRN_RX_QUEUE_FULL;
 				goto free_out;
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 07/10] net/af_xdp: remove useless assignment
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (5 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 06/10] net/bonding: " Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 08/10] net/bnxt: fix redundant return Ferruh Yigit
                     ` (2 subsequent siblings)
  9 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Ciara Loftus, Qi Zhang, Xiaolong Ye
  Cc: Ferruh Yigit, stable, David Marchand

Assignment of function parameter 'umem' removed.

Fixes: f0ce7af0e182 ("net/af_xdp: remove resources when port is closed")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
---
 drivers/net/af_xdp/rte_eth_af_xdp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c
index 2c7892bd7e..7fc70df713 100644
--- a/drivers/net/af_xdp/rte_eth_af_xdp.c
+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
@@ -840,7 +840,6 @@ xdp_umem_destroy(struct xsk_umem_info *umem)
 #endif
 
 	rte_free(umem);
-	umem = NULL;
 }
 
 static int
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 08/10] net/bnxt: fix redundant return
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (6 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 07/10] net/af_xdp: remove useless assignment Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 09/10] app/crypto-perf: remove always true condition Ferruh Yigit
  2020-11-19 11:59   ` [dpdk-stable] [v21.02 v3 10/10] net/avp: " Ferruh Yigit
  9 siblings, 0 replies; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Ajit Khaparde, Somnath Kotur, Randy Schacher,
	Venkat Duvvuru, Peter Spreadborough
  Cc: Ferruh Yigit, stable, David Marchand

Removing useless 'return' statement.

Fixes: b2da02480cb7 ("net/bnxt: support EEM system memory")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 drivers/net/bnxt/tf_core/tf_em_common.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/bnxt/tf_core/tf_em_common.c b/drivers/net/bnxt/tf_core/tf_em_common.c
index ad92cbdc75..c96c21c2e9 100644
--- a/drivers/net/bnxt/tf_core/tf_em_common.c
+++ b/drivers/net/bnxt/tf_core/tf_em_common.c
@@ -307,7 +307,6 @@ tf_em_page_tbl_pgcnt(uint32_t num_pages,
 {
 	return roundup(num_pages, MAX_PAGE_PTRS(page_size)) /
 		       MAX_PAGE_PTRS(page_size);
-	return 0;
 }
 
 /**
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 09/10] app/crypto-perf: remove always true condition
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (7 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 08/10] net/bnxt: fix redundant return Ferruh Yigit
@ 2020-11-19 11:58   ` Ferruh Yigit
  2020-11-23 15:25     ` [dpdk-stable] [dpdk-dev] " Zhang, Roy Fan
  2020-11-19 11:59   ` [dpdk-stable] [v21.02 v3 10/10] net/avp: " Ferruh Yigit
  9 siblings, 1 reply; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:58 UTC (permalink / raw)
  To: dev, Declan Doherty, Marcin Kerlin, Slawomir Mrozowicz,
	Michal Kobylinski, Piotr Azarewicz
  Cc: Ferruh Yigit, stable

This is already 'else' leg of the opposite comparison, simple 'else'
will be logically same.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 app/test-crypto-perf/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c
index 5f035519c3..99f86e9019 100644
--- a/app/test-crypto-perf/main.c
+++ b/app/test-crypto-perf/main.c
@@ -390,7 +390,7 @@ cperf_check_test_vector(struct cperf_options *opts,
 		if (opts->cipher_algo == RTE_CRYPTO_CIPHER_NULL) {
 			if (test_vec->plaintext.data == NULL)
 				return -1;
-		} else if (opts->cipher_algo != RTE_CRYPTO_CIPHER_NULL) {
+		} else {
 			if (test_vec->plaintext.data == NULL)
 				return -1;
 			if (test_vec->plaintext.length < opts->max_buffer_size)
@@ -440,7 +440,7 @@ cperf_check_test_vector(struct cperf_options *opts,
 				return -1;
 			if (test_vec->plaintext.length < opts->max_buffer_size)
 				return -1;
-		} else if (opts->cipher_algo != RTE_CRYPTO_CIPHER_NULL) {
+		} else {
 			if (test_vec->plaintext.data == NULL)
 				return -1;
 			if (test_vec->plaintext.length < opts->max_buffer_size)
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [dpdk-stable] [v21.02 v3 10/10] net/avp: remove always true condition
       [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
                     ` (8 preceding siblings ...)
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 09/10] app/crypto-perf: remove always true condition Ferruh Yigit
@ 2020-11-19 11:59   ` Ferruh Yigit
  2020-11-20 17:40     ` Steven Webster
  9 siblings, 1 reply; 21+ messages in thread
From: Ferruh Yigit @ 2020-11-19 11:59 UTC (permalink / raw)
  To: dev, Steven Webster, Matt Peters, Vincent Jardin, Allain Legacy
  Cc: Ferruh Yigit, stable

There is already a break above for the case "count >= 1", so at this
stage 'count' should be always '0'.

Fixes: 1a85922369c4 ("net/avp: add device configuration")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 drivers/net/avp/avp_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c
index 5f8187b905..f531e03c02 100644
--- a/drivers/net/avp/avp_ethdev.c
+++ b/drivers/net/avp/avp_ethdev.c
@@ -267,7 +267,7 @@ avp_dev_process_request(struct avp_dev *avp, struct rte_avp_request *request)
 			break;
 		}
 
-		if ((count < 1) && (retry == 0)) {
+		if (retry == 0) {
 			PMD_DRV_LOG(ERR, "Timeout while waiting for a response for %u\n",
 				    request->req_id);
 			ret = -ETIME;
-- 
2.26.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [v21.02 v3 10/10] net/avp: remove always true condition
  2020-11-19 11:59   ` [dpdk-stable] [v21.02 v3 10/10] net/avp: " Ferruh Yigit
@ 2020-11-20 17:40     ` Steven Webster
  0 siblings, 0 replies; 21+ messages in thread
From: Steven Webster @ 2020-11-20 17:40 UTC (permalink / raw)
  To: Ferruh Yigit, dev, Matt Peters, Vincent Jardin, Allain Legacy; +Cc: stable

On 2020-11-19 6:59 a.m., Ferruh Yigit wrote:

> There is already a break above for the case "count >= 1", so at this
> stage 'count' should be always '0'.
> 
> Fixes: 1a85922369c4 ("net/avp: add device configuration")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
>   drivers/net/avp/avp_ethdev.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c
> index 5f8187b905..f531e03c02 100644
> --- a/drivers/net/avp/avp_ethdev.c
> +++ b/drivers/net/avp/avp_ethdev.c
> @@ -267,7 +267,7 @@ avp_dev_process_request(struct avp_dev *avp, struct rte_avp_request *request)
>                          break;
>                  }
> 
> -               if ((count < 1) && (retry == 0)) {
> +               if (retry == 0) {
>                          PMD_DRV_LOG(ERR, "Timeout while waiting for a response for %u\n",
>                                      request->req_id);
>                          ret = -ETIME;
> --
> 2.26.2
> 
Acked-by: Steven Webster <steven.webster@windriver.com>

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [v21.02 v3 09/10] app/crypto-perf: remove always true condition
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 09/10] app/crypto-perf: remove always true condition Ferruh Yigit
@ 2020-11-23 15:25     ` Zhang, Roy Fan
  0 siblings, 0 replies; 21+ messages in thread
From: Zhang, Roy Fan @ 2020-11-23 15:25 UTC (permalink / raw)
  To: Yigit, Ferruh, dev, Doherty, Declan, Kerlin, Marcin, Mrozowicz,
	SlawomirX, Kobylinski, Michal, Piotr Azarewicz
  Cc: Yigit, Ferruh, stable

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Ferruh Yigit
> Sent: Thursday, November 19, 2020 11:59 AM
> To: dev@dpdk.org; Doherty, Declan <declan.doherty@intel.com>; Kerlin,
> Marcin <marcin.kerlin@intel.com>; Mrozowicz, SlawomirX
> <slawomirx.mrozowicz@intel.com>; Kobylinski, Michal
> <michal.kobylinski@intel.com>; Piotr Azarewicz
> <piotrx.t.azarewicz@intel.com>
> Cc: Yigit, Ferruh <ferruh.yigit@intel.com>; stable@dpdk.org
> Subject: [dpdk-dev] [v21.02 v3 09/10] app/crypto-perf: remove always true
> condition
> 
> This is already 'else' leg of the opposite comparison, simple 'else'
> will be logically same.
> 
> Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test
> application")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
>  app/test-crypto-perf/main.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c
> index 5f035519c3..99f86e9019 100644
> --- a/app/test-crypto-perf/main.c
> +++ b/app/test-crypto-perf/main.c
> @@ -390,7 +390,7 @@ cperf_check_test_vector(struct cperf_options *opts,
>  		if (opts->cipher_algo == RTE_CRYPTO_CIPHER_NULL) {
>  			if (test_vec->plaintext.data == NULL)
>  				return -1;
> -		} else if (opts->cipher_algo != RTE_CRYPTO_CIPHER_NULL) {
> +		} else {
>  			if (test_vec->plaintext.data == NULL)
>  				return -1;
>  			if (test_vec->plaintext.length < opts-
> >max_buffer_size)
> @@ -440,7 +440,7 @@ cperf_check_test_vector(struct cperf_options *opts,
>  				return -1;
>  			if (test_vec->plaintext.length < opts-
> >max_buffer_size)
>  				return -1;
> -		} else if (opts->cipher_algo != RTE_CRYPTO_CIPHER_NULL) {
> +		} else {
>  			if (test_vec->plaintext.data == NULL)
>  				return -1;
>  			if (test_vec->plaintext.length < opts-
> >max_buffer_size)
> --
> 2.26.2

Thanks Ferruh!

Acked-by: Fan Zhang <roy.fan.zhang@intel.com>


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [v21.02 v3 05/10] net/pcap: remove local variable shadowing outer one
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 05/10] net/pcap: remove local variable shadowing outer one Ferruh Yigit
@ 2021-01-08 10:31     ` David Marchand
  0 siblings, 0 replies; 21+ messages in thread
From: David Marchand @ 2021-01-08 10:31 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: dev, Juhamatti Kuusisaari, dpdk stable

On Thu, Nov 19, 2020 at 1:01 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> 'ret' is already defined in the function scope, removing the 'ret' in
> the block scope.
>
> Fixes: c9507cd0cada ("net/pcap: support physical interface MAC address")
> Cc: stable@dpdk.org
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>

Reviewed-by: David Marchand <david.marchand@redhat.com>

-- 
David Marchand


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [v21.02 v3 06/10] net/bonding: remove local variable shadowing outer one
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 06/10] net/bonding: " Ferruh Yigit
@ 2021-01-08 10:34     ` David Marchand
  2021-01-11  1:03     ` [dpdk-stable] " Min Hu (Connor)
  1 sibling, 0 replies; 21+ messages in thread
From: David Marchand @ 2021-01-08 10:34 UTC (permalink / raw)
  To: Ferruh Yigit
  Cc: dev, Chas Williams, Min Hu (Connor),
	Tomasz Kulasek, Declan Doherty, dpdk stable

On Thu, Nov 19, 2020 at 1:01 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> 'retval' is already defined in the function scope, removing the 'retval'
> in the block scope.
>
> Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")
> Cc: stable@dpdk.org
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>

Reviewed-by: David Marchand <david.marchand@redhat.com>

-- 
David Marchand


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [v21.02 v3 01/10] app/procinfo: fix redundant condition
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 01/10] app/procinfo: fix redundant condition Ferruh Yigit
@ 2021-01-08 10:36     ` David Marchand
  0 siblings, 0 replies; 21+ messages in thread
From: David Marchand @ 2021-01-08 10:36 UTC (permalink / raw)
  To: Ferruh Yigit
  Cc: dev, Maryam Tahhan, Reshma Pattan, Harry van Haaren,
	Roman Korynkevych, dpdk stable

On Thu, Nov 19, 2020 at 12:59 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> '_filters' is compared twice, second one will be always false, removing
> it using the message more relevant to the '_filters'.
>
> Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id")
> Cc: stable@dpdk.org
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>

Reviewed-by: David Marchand <david.marchand@redhat.com>

-- 
David Marchand


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [dpdk-stable] [v21.02 v3 06/10] net/bonding: remove local variable shadowing outer one
  2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 06/10] net/bonding: " Ferruh Yigit
  2021-01-08 10:34     ` [dpdk-stable] [dpdk-dev] " David Marchand
@ 2021-01-11  1:03     ` Min Hu (Connor)
  1 sibling, 0 replies; 21+ messages in thread
From: Min Hu (Connor) @ 2021-01-11  1:03 UTC (permalink / raw)
  To: Ferruh Yigit, dev, Chas Williams, Tomasz Kulasek, Declan Doherty; +Cc: stable

Acked-by: Min Hu (Connor) <humin29@huawei.com>

在 2020/11/19 19:58, Ferruh Yigit 写道:
> 'retval' is already defined in the function scope, removing the 'retval'
> in the block scope.
> 
> Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
> Cc: tomaszx.kulasek@intel.com
> ---
>   drivers/net/bonding/rte_eth_bond_8023ad.c | 6 ++----
>   1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c
> index 67ca0730fa..5fe004e551 100644
> --- a/drivers/net/bonding/rte_eth_bond_8023ad.c
> +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c
> @@ -1334,8 +1334,7 @@ bond_mode_8023ad_handle_slow_pkt(struct bond_dev_private *internals,
>   		rte_eth_macaddr_get(slave_id, &m_hdr->eth_hdr.s_addr);
>   
>   		if (internals->mode4.dedicated_queues.enabled == 0) {
> -			int retval = rte_ring_enqueue(port->tx_ring, pkt);
> -			if (retval != 0) {
> +			if (rte_ring_enqueue(port->tx_ring, pkt) != 0) {
>   				/* reset timer */
>   				port->rx_marker_timer = 0;
>   				wrn = WRN_TX_QUEUE_FULL;
> @@ -1355,8 +1354,7 @@ bond_mode_8023ad_handle_slow_pkt(struct bond_dev_private *internals,
>   		}
>   	} else if (likely(subtype == SLOW_SUBTYPE_LACP)) {
>   		if (internals->mode4.dedicated_queues.enabled == 0) {
> -			int retval = rte_ring_enqueue(port->rx_ring, pkt);
> -			if (retval != 0) {
> +			if (rte_ring_enqueue(port->rx_ring, pkt) != 0) {
>   				/* If RX fing full free lacpdu message and drop packet */
>   				wrn = WRN_RX_QUEUE_FULL;
>   				goto free_out;
> 

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-01-11  1:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200824094021.2323605-1-ferruh.yigit@intel.com>
2020-08-24  9:40 ` [dpdk-stable] [PATCH 6/7] ethdev: remove invalid symbols from map file Ferruh Yigit
2020-08-29 12:14   ` Andrew Rybchenko
     [not found] ` <20200903211000.244931-1-ferruh.yigit@intel.com>
2020-09-03 21:09   ` [dpdk-stable] [PATCH v2 " Ferruh Yigit
     [not found] ` <20200909111220.1195759-1-ferruh.yigit@intel.com>
2020-09-09 11:12   ` [dpdk-stable] [PATCH v3 " Ferruh Yigit
     [not found] ` <20200909130148.1756518-1-ferruh.yigit@intel.com>
2020-09-09 13:01   ` [dpdk-stable] [PATCH v4 " Ferruh Yigit
     [not found] ` <20201119115900.4095566-1-ferruh.yigit@intel.com>
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 01/10] app/procinfo: fix redundant condition Ferruh Yigit
2021-01-08 10:36     ` [dpdk-stable] [dpdk-dev] " David Marchand
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 02/10] app/procinfo: fix negative check on unsigned variable Ferruh Yigit
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 03/10] app/procinfo: remove suspicious sizeof Ferruh Yigit
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 04/10] app/procinfo: remove useless assignment Ferruh Yigit
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 05/10] net/pcap: remove local variable shadowing outer one Ferruh Yigit
2021-01-08 10:31     ` David Marchand
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 06/10] net/bonding: " Ferruh Yigit
2021-01-08 10:34     ` [dpdk-stable] [dpdk-dev] " David Marchand
2021-01-11  1:03     ` [dpdk-stable] " Min Hu (Connor)
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 07/10] net/af_xdp: remove useless assignment Ferruh Yigit
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 08/10] net/bnxt: fix redundant return Ferruh Yigit
2020-11-19 11:58   ` [dpdk-stable] [v21.02 v3 09/10] app/crypto-perf: remove always true condition Ferruh Yigit
2020-11-23 15:25     ` [dpdk-stable] [dpdk-dev] " Zhang, Roy Fan
2020-11-19 11:59   ` [dpdk-stable] [v21.02 v3 10/10] net/avp: " Ferruh Yigit
2020-11-20 17:40     ` Steven Webster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).