liquidio: move macro definition to a proper place
authorVeerasenareddy Burru <veerasenareddy.burru@cavium.com>
Mon, 21 Aug 2017 19:35:56 +0000 (12:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 18:08:15 +0000 (11:08 -0700)
The macro LIO_CMD_WAIT_TM is not specific to the PF driver; it can be used
by the VF driver too, so move its definition from a PF-specific header file
to one that's common to PF and VF.

Signed-off-by: Veerasenareddy Burru <veerasenareddy.burru@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.h
drivers/net/ethernet/cavium/liquidio/liquidio_common.h

index dee604651ba7d309686cca04f1b41222221adfe1..2aba5247b6d8d7b917aa11327b499643ceb106c3 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "cn23xx_pf_regs.h"
 
-#define LIO_CMD_WAIT_TM 100
-
 /* Register address and configuration for a CN23XX devices.
  * If device specific changes need to be made then add a struct to include
  * device specific fields as shown in the commented section
index 906e30aadadce342a3d2abe1e787874b85fd5213..d0076c191cee11e9578f39f34672f7ec0dac4ed5 100644 (file)
@@ -237,6 +237,8 @@ static inline void add_sg_size(struct octeon_sg_entry *sg_entry,
 #define   OCTNET_CMD_VLAN_FILTER_ENABLE 0x1
 #define   OCTNET_CMD_VLAN_FILTER_DISABLE 0x0
 
+#define   LIO_CMD_WAIT_TM 100
+
 /* RX(packets coming from wire) Checksum verification flags */
 /* TCP/UDP csum */
 #define   CNNIC_L4SUM_VERIFIED             0x1