liquidio: Moved common function skb_iq to to octeon_network.h
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Sat, 24 Mar 2018 00:37:17 +0000 (17:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Mar 2018 20:18:52 +0000 (16:18 -0400)
Moving common function skb_iq to to octeon_network.h

Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com>
Acked-by: Derek Chickles <derek.chickles@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/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/liquidio/octeon_network.h

index a0c4c0682ece541793dee19c6b6273b2db126c41..f9e2a0615174ba917dc5fb7f3c1a2b4bdc3fefd1 100644 (file)
@@ -1692,16 +1692,6 @@ static int octeon_pci_os_setup(struct octeon_device *oct)
        return 0;
 }
 
-static inline int skb_iq(struct lio *lio, struct sk_buff *skb)
-{
-       int q = 0;
-
-       if (netif_is_multiqueue(lio->netdev))
-               q = skb->queue_mapping % lio->linfo.num_txpciq;
-
-       return q;
-}
-
 /**
  * \brief Check Tx queue state for a given network buffer
  * @param lio per-network private data
index 82d70e4752a5cc08765e70ac50c389c8a2fde543..5f0114d9c881d6c0c3fcaa4d5259684e0be57776 100644 (file)
@@ -993,16 +993,6 @@ static int octeon_pci_os_setup(struct octeon_device *oct)
        return 0;
 }
 
-static int skb_iq(struct lio *lio, struct sk_buff *skb)
-{
-       int q = 0;
-
-       if (netif_is_multiqueue(lio->netdev))
-               q = skb->queue_mapping % lio->linfo.num_txpciq;
-
-       return q;
-}
-
 /**
  * \brief Check Tx queue state for a given network buffer
  * @param lio per-network private data
index 0a14d772f4b20f7ec8c824f869cc31ba47d41ce9..cd334a74a2755783d5b9f1f509415601cb330b19 100644 (file)
@@ -566,4 +566,14 @@ static inline void txqs_start(struct net_device *netdev)
        }
 }
 
+static inline int skb_iq(struct lio *lio, struct sk_buff *skb)
+{
+       int q = 0;
+
+       if (netif_is_multiqueue(lio->netdev))
+               q = skb->queue_mapping % lio->linfo.num_txpciq;
+
+       return q;
+}
+
 #endif