ionic: Pass ionic_txq_desc to ionic_tx_tso_post
Pass the ionic_txq_desc instead of re-referencing it from the q->txq array since the caller to ionic_tx_tso_post will always have the current ionic_txq_desc pointer already. Signed-off-by: Brett Creeley <brett.creeley@amd.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Link: https://lore.kernel.org/r/20240529000259.25775-4-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
8097a2f3d2
commit
4dde9588c5
@@ -1357,7 +1357,7 @@ static int ionic_tx_tcp_pseudo_csum(struct sk_buff *skb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void ionic_tx_tso_post(struct net_device *netdev, struct ionic_queue *q,
|
static void ionic_tx_tso_post(struct net_device *netdev, struct ionic_queue *q,
|
||||||
struct ionic_tx_desc_info *desc_info,
|
struct ionic_txq_desc *desc,
|
||||||
struct sk_buff *skb,
|
struct sk_buff *skb,
|
||||||
dma_addr_t addr, u8 nsge, u16 len,
|
dma_addr_t addr, u8 nsge, u16 len,
|
||||||
unsigned int hdrlen, unsigned int mss,
|
unsigned int hdrlen, unsigned int mss,
|
||||||
@@ -1365,7 +1365,6 @@ static void ionic_tx_tso_post(struct net_device *netdev, struct ionic_queue *q,
|
|||||||
u16 vlan_tci, bool has_vlan,
|
u16 vlan_tci, bool has_vlan,
|
||||||
bool start, bool done)
|
bool start, bool done)
|
||||||
{
|
{
|
||||||
struct ionic_txq_desc *desc = &q->txq[q->head_idx];
|
|
||||||
u8 flags = 0;
|
u8 flags = 0;
|
||||||
u64 cmd;
|
u64 cmd;
|
||||||
|
|
||||||
@@ -1503,10 +1502,9 @@ static int ionic_tx_tso(struct net_device *netdev, struct ionic_queue *q,
|
|||||||
seg_rem = min(tso_rem, mss);
|
seg_rem = min(tso_rem, mss);
|
||||||
done = (tso_rem == 0);
|
done = (tso_rem == 0);
|
||||||
/* post descriptor */
|
/* post descriptor */
|
||||||
ionic_tx_tso_post(netdev, q, desc_info, skb,
|
ionic_tx_tso_post(netdev, q, desc, skb, desc_addr, desc_nsge,
|
||||||
desc_addr, desc_nsge, desc_len,
|
desc_len, hdrlen, mss, outer_csum, vlan_tci,
|
||||||
hdrlen, mss, outer_csum, vlan_tci, has_vlan,
|
has_vlan, start, done);
|
||||||
start, done);
|
|
||||||
start = false;
|
start = false;
|
||||||
/* Buffer information is stored with the first tso descriptor */
|
/* Buffer information is stored with the first tso descriptor */
|
||||||
desc_info = &q->tx_info[q->head_idx];
|
desc_info = &q->tx_info[q->head_idx];
|
||||||
|
|||||||
Reference in New Issue
Block a user