]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc.c
net/sfc: remove TxQ control from shared TxQ info
[dpdk.git] / drivers / net / sfc / sfc.c
index 63bc0a5688c45b74ef2103822bb9e257727bde41..dd662df0dfcc1c00848a95194c3c0f37657034e8 100644 (file)
@@ -280,7 +280,7 @@ sfc_set_fw_subvariant(struct sfc_adapter *sa)
        for (txq_index = 0; txq_index < sa->txq_count; ++txq_index) {
                struct sfc_txq_info *txq_info = &sa->txq_info[txq_index];
 
-               if (txq_info->txq != NULL)
+               if (txq_info->state & SFC_TXQ_INITIALIZED)
                        tx_offloads |= txq_info->offloads;
        }