netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/cxgb3: fix revert error
@ 2013-08-22 22:27 Doug Ledford
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2013-08-22 22:27 UTC (permalink / raw)
  To: netdev
  Cc: Doug Ledford, Santosh Rastapur, Jay Fenlason, David S. Miller,
	Divy Le ray, Alexey Kardashevskiy

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

728e2cc Revert "cxgb3: Check and handle the dma mapping errors"

reverted f83331b cxgb3: Check and handle the dma mapping errors,
however, in between those two there was also
be8b678 cxgb3: Correct comparisons and calculations using skb->tail and
skb-transport_header and
15dd16c cxgb3: Correct comparisons and calculations using skb->tail and
skb-transport_header

The author of the revert did not fix up the conflicts in such as way as
to preserve the other two commits, so they were reverted too.  As they
correct math issues under certain conditions, they should be retained.
This puts them back in place.

Signed-off-by: Doug Ledford <dledford@redhat.com>
---
 drivers/net/ethernet/chelsio/cxgb3/sge.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c
b/drivers/net/ethernet/chelsio/cxgb3/sge.c
index 9c89dc8..632b318 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c
@@ -1599,7 +1599,8 @@ static void write_ofld_wr(struct adapter *adap,
struct sk_buff *skb,
 	flits = skb_transport_offset(skb) / 8;
 	sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
 	sgl_flits = make_sgl(skb, sgp, skb_transport_header(skb),
-			     skb->tail - skb->transport_header,
+			     skb_tail_pointer(skb) -
+			     skb_transport_header(skb),
 			     adap->pdev);
 	if (need_skb_unmap()) {
 		setup_deferred_unmapping(skb, adap->pdev, sgp, sgl_flits);
-- 
1.8.1.4


[-- Attachment #2: Attached Message Part --]
[-- Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] net/cxgb3: fix revert error
@ 2013-08-27  6:11 Doug Ledford
  2013-08-27  6:12 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Ledford @ 2013-08-27  6:11 UTC (permalink / raw)
  To: netdev; +Cc: Doug Ledford, davem

Resent due to corruption in previous send.  From davem on previous
email send:

> This patch seems to have been corrupted by your email client.
> 
> Also I really need the Chelsio folks to review this when you repost
> it.

Dave, hopefully this send is able to be parsed properly.  I will assume
that since you couldn't see the patch, you assumed Chelsio needs to review
the content.  In truth, the content of this path is hardware agnostic and
right down your alley of expertise.  Your review should be sufficient for
inclusion or rejection.

728e2cc Revert "cxgb3: Check and handle the dma mapping errors"

reverted f83331b cxgb3: Check and handle the dma mapping errors,
however, in between those two there was also
be8b678 cxgb3: Correct comparisons and calculations using skb->tail and
skb-transport_header and
15dd16c cxgb3: Correct comparisons and calculations using skb->tail and
skb-transport_header

The author of the revert did not fix up the conflicts in such as way as
to preserve the other two commits, so they were reverted too.  As they
correct math issues under certain conditions, they should be retained.
This puts them back in place.

Signed-off-by: Doug Ledford <dledford@redhat.com>
---
 drivers/net/ethernet/chelsio/cxgb3/sge.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c b/drivers/net/ethernet/chelsio/cxgb3/sge.c
index 9c89dc8..632b318 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c
@@ -1599,7 +1599,8 @@ static void write_ofld_wr(struct adapter *adap, struct sk_buff *skb,
 	flits = skb_transport_offset(skb) / 8;
 	sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
 	sgl_flits = make_sgl(skb, sgp, skb_transport_header(skb),
-			     skb->tail - skb->transport_header,
+			     skb_tail_pointer(skb) -
+			     skb_transport_header(skb),
 			     adap->pdev);
 	if (need_skb_unmap()) {
 		setup_deferred_unmapping(skb, adap->pdev, sgp, sgl_flits);
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/cxgb3: fix revert error
  2013-08-27  6:11 Doug Ledford
@ 2013-08-27  6:12 ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2013-08-27  6:12 UTC (permalink / raw)
  To: dledford; +Cc: netdev


Please don't reply to an active thread to make a fresh submission of a
patch.

Instead, make a new posting to the mailing list.

Otherwise I have to edit all of the other unrelated text out and over
the coarse of the number of patches I have to review and apply that
overhead would add up.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-27  6:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-22 22:27 [PATCH] net/cxgb3: fix revert error Doug Ledford
  -- strict thread matches above, loose matches on Subject: below --
2013-08-27  6:11 Doug Ledford
2013-08-27  6:12 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).