From: Stefan Agner Date: Wed, 13 Apr 2016 16:41:28 -0700 Subject: [U-Boot] [PATCH 2/2] net: increase maximum frame size to accomediate VLAN packets In-Reply-To: <1460590682-28139-2-git-send-email-stefan@agner.ch> References: <1460590682-28139-1-git-send-email-stefan@agner.ch> <1460590682-28139-2-git-send-email-stefan@agner.ch> Message-ID: <7e599edd6fa735c249f67b45089afa99@agner.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, Sorry, I accidentally didn't add the v2 in the Subject... On 2016-04-13 16:38, Stefan Agner wrote: ... > /* > - * Maximum packet size; used to allocate packet storage. > - * TFTP packets can be 524 bytes + IP header + ethernet header. > - * Lets be conservative, and go for 38 * 16. (Must also be > - * a multiple of 32 bytes). > - */ > -/* > - * AS.HARNOIS : Better to set PKTSIZE to maximum size because > - * traffic type is not always controlled > - * maximum packet size = 1518 > + * Maximum packet size; used to allocate packet storage. Use > + * the maxium Ethernet frame size as specified by the Ethernet > + * standard including the 802.1Q tag (VLAN tagging). > + * maximum packet size = 1522 > * maximum packet size and multiple of 32 bytes = 1536 > */ > -#define PKTSIZE 1518 > +#define PKTSIZE 1522 > #define PKTSIZE_ALIGN 1536 > -/*#define PKTSIZE 608*/ I rewrote the whole comment, as I felt it does not make sense to keep history in the source file. Hope this is ok for you. -- Stefan