netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
	vivien.didelot@savoirfairelinux.com
Subject: Re: [PATCH net-next 1/3] net: bgmac: Pad packets to a minimum size
Date: Thu, 9 Nov 2017 17:25:11 -0800	[thread overview]
Message-ID: <b526788d-7bcd-8ac5-d23f-538a580f3314@gmail.com> (raw)
In-Reply-To: <20171110010625.GB32303@lunn.ch>

On 11/09/2017 05:06 PM, Andrew Lunn wrote:
> On Thu, Nov 09, 2017 at 03:03:16PM -0800, Florian Fainelli wrote:
>> On 11/09/2017 02:37 PM, Andrew Lunn wrote:
>>> On Thu, Nov 09, 2017 at 02:26:04PM -0800, Florian Fainelli wrote:
>>>> In preparation for enabling Broadcom tags with b53, pad packets to a
>>>> minimum size of 64 bytes (sans FCS) in order for the Broadcom switch to
>>>> accept ingressing frames. Without this, we would typically be able to
>>>> DHCP, but not resolve with ARP because packets are too small and get
>>>> rejected by the switch.
>>>
>>> Hi Florian
>>>
>>> Is the MAC sending runt packets in its default configuration? Is this
>>> a general issue, and not just an issue when there is a switch directly
>>> attached?
>>
>> The MAC is sending 64 bytes (with FCS) padded packets by default, but
>> this apparently gets mis-calculated when Broadcom tags are enabled, such
>> that we need to pad before to avoid that.
> 
> Hi Florian
> 
> Ah, so maybe when the tag is stripped off it then becomes a runt
> packet and so gets dropped.

Yes, that is exactly what I observed.
-- 
Florian

  reply	other threads:[~2017-11-10  1:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09 22:26 [PATCH net-next 0/3] net: dsa: b53: Turn on Broadcom tags Florian Fainelli
2017-11-09 22:26 ` [PATCH net-next 1/3] net: bgmac: Pad packets to a minimum size Florian Fainelli
2017-11-09 22:37   ` Andrew Lunn
2017-11-09 23:03     ` Florian Fainelli
2017-11-10  1:06       ` Andrew Lunn
2017-11-10  1:25         ` Florian Fainelli [this message]
2017-11-09 22:26 ` [PATCH net-next 2/3] net: dsa: b53: Stop using dev->cpu_port incorrectly Florian Fainelli
2017-11-09 22:27   ` Florian Fainelli
2017-11-09 22:26 ` [PATCH net-next 3/3] net: dsa: b53: Turn on Broadcom tags Florian Fainelli
2017-11-09 22:29 ` [PATCH net-next 0/3] " Florian Fainelli

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=b526788d-7bcd-8ac5-d23f-538a580f3314@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=vivien.didelot@savoirfairelinux.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;
as well as URLs for NNTP newsgroup(s).