net/qede: fix VXLAN tunnel Tx offload flag setting
authorHarish Patil <harish.patil@cavium.com>
Wed, 7 Jun 2017 07:42:21 +0000 (00:42 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:29 +0000 (10:41 +0100)
This patch fixes missing PKT_TX_TUNNEL_VXLAN Tx offload flag from the
supported Tx offloads and an incorrect tunnel TX BD bit setting.

Fixes: 3d4bb4411683 ("net/qede: add fastpath support for VXLAN tunneling")
Cc: stable@dpdk.org
Signed-off-by: Harish Patil <harish.patil@cavium.com>
drivers/net/qede/qede_rxtx.c
drivers/net/qede/qede_rxtx.h

index 00fda8c..82aa607 100644 (file)
@@ -1410,7 +1410,7 @@ print_tx_bd_info(struct qede_tx_queue *txq,
 
        if (bd1)
                PMD_TX_LOG(INFO, txq,
-                          "BD1: nbytes=%u nbds=%u bd_flags=04%x bf=%04x",
+                          "BD1: nbytes=%u nbds=%u bd_flags=%04x bf=%04x",
                           rte_cpu_to_le_16(bd1->nbytes), bd1->data.nbds,
                           bd1->data.bd_flags.bitfields,
                           rte_cpu_to_le_16(bd1->data.bitfields));
@@ -1609,7 +1609,7 @@ qede_xmit_pkts(void *p_txq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
 
                if (tunn_flg) {
                        /* First indicate its a tunnel pkt */
-                       bd1->data.bd_flags.bitfields |=
+                       bd1->data.bitfields |=
                                ETH_TX_DATA_1ST_BD_TUNN_FLAG_MASK <<
                                ETH_TX_DATA_1ST_BD_TUNN_FLAG_SHIFT;
 
index f9f52ea..3f38d0f 100644 (file)
 
 #define QEDE_TX_OFFLOAD_MASK (QEDE_TX_CSUM_OFFLOAD_MASK | \
                              PKT_TX_QINQ_PKT           | \
-                             PKT_TX_VLAN_PKT)
+                             PKT_TX_VLAN_PKT           | \
+                             PKT_TX_TUNNEL_VXLAN)
 
 #define QEDE_TX_OFFLOAD_NOTSUP_MASK \
        (PKT_TX_OFFLOAD_MASK ^ QEDE_TX_OFFLOAD_MASK)