File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,11 @@ xsc_rss_qp_create(struct xsc_ethdev_priv *priv, int port_id)
309
309
310
310
for (i = 0 ; i < priv -> num_rq ; i ++ ) {
311
311
rxq_data = xsc_rxq_get (priv , i );
312
- if (rxq_data == NULL )
313
- return - EINVAL ;
312
+ if (rxq_data == NULL ) {
313
+ rte_errno = EINVAL ;
314
+ goto error ;
315
+ }
316
+
314
317
req = (struct xsc_cmd_create_qp_request * )(& in -> data [0 ] + entry_len * i );
315
318
req -> input_qpn = rte_cpu_to_be_16 (0 ); /* useless for eth */
316
319
req -> pa_num = rte_cpu_to_be_16 (pa_num );
@@ -350,8 +353,11 @@ xsc_rss_qp_create(struct xsc_ethdev_priv *priv, int port_id)
350
353
351
354
for (i = 0 ; i < priv -> num_rq ; i ++ ) {
352
355
rxq_data = xsc_rxq_get (priv , i );
353
- if (rxq_data == NULL )
354
- return - EINVAL ;
356
+ if (rxq_data == NULL ) {
357
+ rte_errno = EINVAL ;
358
+ goto error ;
359
+ }
360
+
355
361
rxq_data -> wqes = rxq_data -> rq_pas -> addr ;
356
362
if (!xsc_dev_is_vf (xdev ))
357
363
rxq_data -> rq_db = (uint32_t * )((uint8_t * )xdev -> bar_addr +
You can’t perform that action at this time.
0 commit comments