From: Sean Anderson <seanga2@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: "David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, Zheyu Ma <zheyuma97@gmail.com>,
open list <linux-kernel@vger.kernel.org>,
Rolf Eike Beer <eike-kernel@sf-tec.de>,
Nick Bowler <nbowler@draconx.ca>
Subject: Re: [PATCH] net: sunhme: Fix packet reception for len < RX_COPY_THRESHOLD
Date: Mon, 19 Sep 2022 20:31:23 -0400 [thread overview]
Message-ID: <ab2ce38a-313b-7e87-aaf5-cfc2b6e0cb28@gmail.com> (raw)
In-Reply-To: <YyjTa1qtt7kPqEaZ@lunn.ch>
On 9/19/22 16:39, Andrew Lunn wrote:
> On Sun, Sep 18, 2022 at 05:55:34PM -0400, Sean Anderson wrote:
>> There is a separate receive path for small packets (under 256 bytes).
>> Instead of allocating a new dma-capable skb to be used for the next packet,
>> this path allocates a skb and copies the data into it (reusing the existing
>> sbk for the next packet). There are two bytes of junk data at the beginning
>> of every packet. I believe these are inserted in order to allow aligned
>> DMA and IP headers. We skip over them using skb_reserve. Before copying
>> over the data, we must use a barrier to ensure we see the whole packet. The
>> current code only synchronizes len bytes, starting from the beginning of
>> the packet, including the junk bytes. However, this leaves off the final
>> two bytes in the packet. Synchronize the whole packet.
>>
>> To reproduce this problem, ping a HME with a payload size between 17 and 214
>>
>> $ ping -s 17 <hme_address>
>>
>> which will complain rather loudly about the data mismatch. Small packets
>> (below 60 bytes on the wire) do not have this issue. I suspect this is
>> related to the padding added to increase the minimum packet size.
>>
>> Signed-off-by: Sean Anderson <seanga2@gmail.com>
>
> Hi Sean
>
>> Patch-prefix: net
>
> This should be in the Subject of the email. Various tools look for the
> netdev tree there. Please try to remember that for future patches.
Sorry, it should have been "Series-postfix".
> Please could you add a Fixes: tag indicating when the problem was
> introduced. Its O.K. if that was when the driver was added. It just
> helps getting the patch back ported to older stable kernels.
Well, the driver was added before git was started...
I suppose I could blame 1da177e4c3f4 ("Linux-2.6.12-rc2"), but maybe I
should just CC the stable list?
> I think patchwork allows you to just reply to your post, and it will
> automagically append the Fixes: tag when the Maintainer actually
> applies the patch.
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
> Andrew
--Sean
next prev parent reply other threads:[~2022-09-20 0:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-18 21:55 Sean Anderson
2022-09-19 20:39 ` Andrew Lunn
2022-09-20 0:31 ` Sean Anderson [this message]
2022-09-20 12:37 ` Andrew Lunn
2022-09-20 13:23 ` Sean Anderson
2022-09-20 19:39 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ab2ce38a-313b-7e87-aaf5-cfc2b6e0cb28@gmail.com \
--to=seanga2@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eike-kernel@sf-tec.de \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nbowler@draconx.ca \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=zheyuma97@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®