Skip to contentSkip to conversation

linux-next: manual merge of the net-next tree with the net tree

DISCUSSION Stephen Rothwell 2 participants 3 messages Dec 10, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/amd/xgbe/xgbe-desc.c between commit 03ccc4c0a9da ("amd-xgbe: Do not clear interrupt indicator") from the net tree and commit c9f140ebb008 ("amd-xgbe: Separate Tx/Rx ring data fields into new structs") from the net-next tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 40 lines
Cheers,
Stephen Rothwell                    [email protected]

diff --cc drivers/net/ethernet/amd/xgbe/xgbe-desc.c
index b15551bad7fa,51b68d1299fe..000000000000
--- a/drivers/net/ethernet/amd/xgbe/xgbe-desc.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-desc.c
@@@ -354,8 -450,30 +450,29 @@@ static void xgbe_unmap_rdata(struct xgb
  		rdata->skb = NULL;
  	}
  
- 	rdata->tso_header = 0;
- 	rdata->len = 0;
+ 	if (rdata->rx.hdr.pa.pages)
+ 		put_page(rdata->rx.hdr.pa.pages);
+ 
+ 	if (rdata->rx.hdr.pa_unmap.pages) {
+ 		dma_unmap_page(pdata->dev, rdata->rx.hdr.pa_unmap.pages_dma,
+ 			       rdata->rx.hdr.pa_unmap.pages_len,
+ 			       DMA_FROM_DEVICE);
+ 		put_page(rdata->rx.hdr.pa_unmap.pages);
+ 	}
+ 
+ 	if (rdata->rx.buf.pa.pages)
+ 		put_page(rdata->rx.buf.pa.pages);
+ 
+ 	if (rdata->rx.buf.pa_unmap.pages) {
+ 		dma_unmap_page(pdata->dev, rdata->rx.buf.pa_unmap.pages_dma,
+ 			       rdata->rx.buf.pa_unmap.pages_len,
+ 			       DMA_FROM_DEVICE);
+ 		put_page(rdata->rx.buf.pa_unmap.pages);
+ 	}
+ 
+ 	memset(&rdata->tx, 0, sizeof(rdata->tx));
+ 	memset(&rdata->rx, 0, sizeof(rdata->rx));
+ 
 -	rdata->interrupt = 0;
  	rdata->mapped_as_page = 0;
  
  	if (rdata->state_saved) {
maintainer
#1 lore raw

From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Dec 2014 12:20:36 +1100

Quoted 8 lines

Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/amd/xgbe/xgbe-desc.c between commit 03ccc4c0a9da ("amd-xgbe: Do not clear interrupt indicator") from the net tree and commit c9f140ebb008 ("amd-xgbe: Separate Tx/Rx ring data fields into new structs") from the net-next tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

As you have seen there are a lot of merge hassles to sort out between the 'net' and 'net-next' tree right now, probably I just added a few more :-)

I'll try to do the merge by the end of today so that these headaches go away for you.

Thanks.

#2 lore raw

Hi Dave,

Quoted 7 lines · On Wed, 10 Dec 2014 14:49:43 -0500 (EST) David Miller <[email protected]>…

As you have seen there are a lot of merge hassles to sort out between the 'net' and 'net-next' tree right now, probably I just added a few more :-)

I'll try to do the merge by the end of today so that these headaches go away for you.

Much appreciated.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]