From: greearb@candelatech.com
To: netdev@vger.kernel.org
Cc: kaber@trash.net, Ben Greear <greearb@candelatech.com>
Subject: [PATCH] vlan: Support sending custom Ethernet CRC.
Date: Mon, 5 Mar 2012 18:05:58 -0800 [thread overview]
Message-ID: <1330999558-14270-1-git-send-email-greearb@candelatech.com> (raw)
From: Ben Greear <greearb@candelatech.com>
If the underlying device supports sending custom Ethernet CRC,
then enable that feature in the VLANs as well.
NOTE: You will probably have to disable any
VLAN hardware assist on the underlying device to get
this to properly send packets with this feature enabled.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 9988d4a... 6aeb0a3... M net/8021q/vlan_dev.c
net/8021q/vlan_dev.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 9988d4a..6aeb0a3 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -543,6 +543,9 @@ static int vlan_dev_init(struct net_device *dev)
dev->features |= real_dev->vlan_features | NETIF_F_LLTX;
dev->gso_max_size = real_dev->gso_max_size;
+ if (netif_supports_nofcs(real_dev))
+ dev->priv_flags |= IFF_SUPP_NOFCS;
+
/* ipv6 shared card related stuff */
dev->dev_id = real_dev->dev_id;
--
1.7.3.4
next reply other threads:[~2012-03-06 2:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 2:05 greearb [this message]
2012-03-06 2:14 ` [PATCH] vlan: Support sending custom Ethernet CRC David Miller
2012-03-06 3:59 ` Ben Greear
2012-03-06 4:12 ` David Miller
2012-03-06 16:16 ` Ben Hutchings
2012-03-06 19:36 ` 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=1330999558-14270-1-git-send-email-greearb@candelatech.com \
--to=greearb@candelatech.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.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).