9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Arne Meyer <meyer.arne83@netcologne.de>
To: "9front@9front.org" <9front@9front.org>
Subject: [9front] [patch] ethervgbe.c adjust blocksize for etheriq
Date: Sat, 5 Nov 2022 18:57:26 +0100 (CET)	[thread overview]
Message-ID: <178724306.4357457.1667671046604@comcenter.netcologne.de> (raw)

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

Hello,

ethervgbe appends the ethernet CRC to the block that is send up the stack. This not a problem for ip packets
but breaks aoe sanity checks. We don't use it anyway and FreeBSD and OpenBSD don't use it either.

Greetings,
Arne

[-- Attachment #2: ethervgbe.c.patch --]
[-- Type: application/octet-stream, Size: 356 bytes --]

diff e938acc8ff64a3cbbd6ef7ba88f83e3f03ede681 uncommitted
--- a/sys/src/9/pc/ethervgbe.c
+++ b/sys/src/9/pc/ethervgbe.c
@@ -592,7 +592,7 @@
 
 			/* plant new block, might fail if out of memory */
 			if(vgbenewrx(ctlr, i) == 0){
-				block->wp = block->rp + length;
+				block->wp = block->rp + length - 4;
 				etheriq(edev, block);
 				continue;
 			}

             reply	other threads:[~2022-11-05 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-05 17:57 Arne Meyer [this message]
2022-11-05 20:18 ` Jacob Moody

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=178724306.4357457.1667671046604@comcenter.netcologne.de \
    --to=meyer.arne83@netcologne.de \
    --cc=9front@9front.org \
    /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).