]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/nfp/nfp_net_pmd.h
nfp: serialize access for hardware reconfiguration
[dpdk.git] / drivers / net / nfp / nfp_net_pmd.h
index a7f938629c5714762458c6c6f10ad4e81e6e2f1d..c1809720fb5495261e613d3596e270ca2ad4b9e2 100644 (file)
@@ -75,9 +75,6 @@ struct nfp_net_adapter;
 /* Interrupt definitions */
 #define NFP_NET_IRQ_LSC_IDX             0
 
-#define RTE_MBUF_DATA_DMA_ADDR(mb) \
-       ((uint64_t)((mb)->buf_physaddr + (mb)->data_off))
-
 /* Default values for RX/TX configuration */
 #define DEFAULT_RX_FREE_THRESH  32
 #define DEFAULT_RX_PTHRESH      8
@@ -409,6 +406,7 @@ struct nfp_net_hw {
        int stride_tx;
 
        uint8_t *qcp_cfg;
+       rte_spinlock_t reconfig_lock;
 
        uint32_t max_tx_queues;
        uint32_t max_rx_queues;