dpdk: no need to copy default tx conf 34/34834/2
authorDamjan Marion <damarion@cisco.com>
Wed, 5 Jan 2022 20:26:51 +0000 (21:26 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 5 Jan 2022 22:05:39 +0000 (22:05 +0000)
Type: improvement
Change-Id: Ifd5201c101da7f4fb63f9b64280a6ec35b2af6a0
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/dpdk/device/common.c
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/init.c

index 19c0c32..f77e377 100644 (file)
@@ -103,12 +103,12 @@ dpdk_device_setup (dpdk_device_t * xd)
   for (j = 0; j < xd->conf.n_tx_queues; j++)
     {
       rv = rte_eth_tx_queue_setup (xd->port_id, j, xd->conf.n_tx_desc,
-                                  xd->cpu_socket, &xd->tx_conf);
+                                  xd->cpu_socket, 0);
 
       /* retry with any other CPU socket */
       if (rv < 0)
        rv = rte_eth_tx_queue_setup (xd->port_id, j, xd->conf.n_tx_desc,
-                                    SOCKET_ID_ANY, &xd->tx_conf);
+                                    SOCKET_ID_ANY, 0);
       if (rv < 0)
        dpdk_device_error (xd, "rte_eth_tx_queue_setup", rv);
 
index 5da1834..3026734 100644 (file)
@@ -216,7 +216,6 @@ typedef struct
 
   /* PMD related */
   struct rte_eth_conf port_conf;
-  struct rte_eth_txconf tx_conf;
 
   /* flow related */
   u32 supported_flow_actions;
index 80d85a8..05d1e74 100644 (file)
@@ -362,9 +362,6 @@ dpdk_lib_init (dpdk_main_t * dm)
       else
        last_pci_addr.as_u32 = ~0;
 
-      clib_memcpy (&xd->tx_conf, &di.default_txconf,
-                  sizeof (struct rte_eth_txconf));
-
       if (di.rx_offload_capa & DEV_RX_OFFLOAD_IPV4_CKSUM)
        {
          xd->port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_IPV4_CKSUM;