mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
net: macb: apply reverse christmas tree in macb_tx_map()
The arguments grew over time; follow conventions and apply reverse christmas tree (RCT). Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Link: https://patch.msgid.link/20251014-macb-cleanup-v1-14-31cd266e22cd@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
b5fe4f3e59
commit
1ce9662e31
@@ -1988,14 +1988,14 @@ static unsigned int macb_tx_map(struct macb *bp,
|
|||||||
struct sk_buff *skb,
|
struct sk_buff *skb,
|
||||||
unsigned int hdrlen)
|
unsigned int hdrlen)
|
||||||
{
|
{
|
||||||
dma_addr_t mapping;
|
unsigned int f, nr_frags = skb_shinfo(skb)->nr_frags;
|
||||||
unsigned int len, i, tx_head = queue->tx_head;
|
unsigned int len, i, tx_head = queue->tx_head;
|
||||||
|
u32 ctrl, lso_ctrl = 0, seq_ctrl = 0;
|
||||||
|
unsigned int eof = 1, mss_mfs = 0;
|
||||||
struct macb_tx_skb *tx_skb = NULL;
|
struct macb_tx_skb *tx_skb = NULL;
|
||||||
struct macb_dma_desc *desc;
|
struct macb_dma_desc *desc;
|
||||||
unsigned int offset, size;
|
unsigned int offset, size;
|
||||||
unsigned int f, nr_frags = skb_shinfo(skb)->nr_frags;
|
dma_addr_t mapping;
|
||||||
unsigned int eof = 1, mss_mfs = 0;
|
|
||||||
u32 ctrl, lso_ctrl = 0, seq_ctrl = 0;
|
|
||||||
|
|
||||||
/* LSO */
|
/* LSO */
|
||||||
if (skb_shinfo(skb)->gso_size != 0) {
|
if (skb_shinfo(skb)->gso_size != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user