mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 22:26:40 +07:00
liquidio: Moved common function skb_iq to to octeon_network.h
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>
This commit is contained in:
parent
5f8baa7a8e
commit
5da052a6bd
@ -1692,16 +1692,6 @@ static int octeon_pci_os_setup(struct octeon_device *oct)
|
|||||||
return 0;
|
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
|
* \brief Check Tx queue state for a given network buffer
|
||||||
* @param lio per-network private data
|
* @param lio per-network private data
|
||||||
|
@ -993,16 +993,6 @@ static int octeon_pci_os_setup(struct octeon_device *oct)
|
|||||||
return 0;
|
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
|
* \brief Check Tx queue state for a given network buffer
|
||||||
* @param lio per-network private data
|
* @param lio per-network private data
|
||||||
|
@ -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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user