From: Max Filippov <jcmvbkbc@gmail.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
colin.king@canonical.com, tklauser@distanz.ch,
thierry.reding@gmail.com
Subject: Re: [PATCH net v2 0/2] net: ethoc: Error path and transmit fixes
Date: Tue, 12 Jul 2016 16:51:10 +0300 [thread overview]
Message-ID: <20160712135109.GB19495@octofox.metropolis> (raw)
In-Reply-To: <1468280155-13152-1-git-send-email-f.fainelli@gmail.com>
Hello,
On Mon, Jul 11, 2016 at 04:35:53PM -0700, Florian Fainelli wrote:
> This patch series contains two patches for the ethoc driver while testing on a
> TS-7300 board where ethoc is provided by an on-board FPGA.
>
> First patch was cooked after chasing crashes with invalid resources passed to
> the driver.
>
> Second patch was cooked after seeing that an interface configured with IP
> 192.168.2.2 was sending ARP packets for 192.168.0.0, no wonder why it could not
> work.
I can see opencores intrerface sending ARP packets shorter than 64 bytes,
but I couldn't reproduce truncation that affects packet contents on my
hardware.
> I don't have access to any other platform using an ethoc interface so
> it could be good to some testing on Xtensa for instance.
I've tested success and error paths affected by this series with the
following additional change on top of it:
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index ca678d4..8c94f45 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -862,7 +862,7 @@ static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (skb_put_padto(skb, ETHOC_ZLEN)) {
dev->stats.tx_errors++;
- goto out;
+ return NETDEV_TX_OK;
}
if (unlikely(skb->len > ETHOC_BUFSIZ)) {
Without it the interface becomes non-functional after the first error
in skb_put_padto.
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
--
Thanks.
-- Max
next prev parent reply other threads:[~2016-07-12 13:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-11 23:35 [PATCH net v2 0/2] net: ethoc: Error path and transmit fixes Florian Fainelli
2016-07-11 23:35 ` [PATCH net v2 1/2] net: ethoc: Fix early error paths Florian Fainelli
2016-07-11 23:35 ` [PATCH net v2 2/2] net: ethoc: Correctly pad short packets Florian Fainelli
2016-07-12 12:24 ` Max Filippov
2016-07-12 2:47 ` [PATCH net v2 0/2] net: ethoc: Error path and transmit fixes David Miller
2016-07-12 13:51 ` Max Filippov [this message]
2016-07-12 17:35 ` David Miller
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=20160712135109.GB19495@octofox.metropolis \
--to=jcmvbkbc@gmail.com \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=thierry.reding@gmail.com \
--cc=tklauser@distanz.ch \
/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;
as well as URLs for NNTP newsgroup(s).