Commit 89f4a198 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by David S. Miller

net: mvneta: get rid of skb in mvneta_rx_queue

Remove skb pointer in mvneta_rx_queue data structure since it is no
longer used
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d1643eb
...@@ -699,8 +699,6 @@ struct mvneta_rx_queue { ...@@ -699,8 +699,6 @@ struct mvneta_rx_queue {
int first_to_refill; int first_to_refill;
u32 refill_num; u32 refill_num;
/* pointer to uncomplete skb buffer */
struct sk_buff *skb;
int left_size; int left_size;
}; };
...@@ -3362,9 +3360,6 @@ static void mvneta_rxq_deinit(struct mvneta_port *pp, ...@@ -3362,9 +3360,6 @@ static void mvneta_rxq_deinit(struct mvneta_port *pp,
{ {
mvneta_rxq_drop_pkts(pp, rxq); mvneta_rxq_drop_pkts(pp, rxq);
if (rxq->skb)
dev_kfree_skb_any(rxq->skb);
if (rxq->descs) if (rxq->descs)
dma_free_coherent(pp->dev->dev.parent, dma_free_coherent(pp->dev->dev.parent,
rxq->size * MVNETA_DESC_ALIGNED_SIZE, rxq->size * MVNETA_DESC_ALIGNED_SIZE,
...@@ -3377,7 +3372,6 @@ static void mvneta_rxq_deinit(struct mvneta_port *pp, ...@@ -3377,7 +3372,6 @@ static void mvneta_rxq_deinit(struct mvneta_port *pp,
rxq->descs_phys = 0; rxq->descs_phys = 0;
rxq->first_to_refill = 0; rxq->first_to_refill = 0;
rxq->refill_num = 0; rxq->refill_num = 0;
rxq->skb = NULL;
rxq->left_size = 0; rxq->left_size = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment